Skip to content

Commit

Permalink
ogrinfo: command line help text fixes (#11462)
Browse files Browse the repository at this point in the history
Co-authored-by: Alessandro Pasotti <[email protected]>
  • Loading branch information
jratike80 and elpaso authored Dec 9, 2024
1 parent 07ea15f commit d8ca787
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions apps/ogrinfo_lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2305,18 +2305,18 @@ static std::unique_ptr<GDALArgumentParser> GDALVectorInfoOptionsGetParser(
argParser->add_argument("-al")
.store_into(psOptions->bAllLayers)
.help(_("List all layers (used instead of having to give layer names "
"as arguments)"));
"as arguments)."));

{
auto &group = argParser->add_mutually_exclusive_group();
group.add_argument("-so", "-summary")
.store_into(psOptions->bSummaryParser)
.help(_("Summary only: list all layers (used instead of having to "
"give layer names as arguments)"));
.help(_("Summary only: show only summary information like "
"projection, schema, feature count and extents."));

group.add_argument("-features")
.store_into(psOptions->bFeaturesParser)
.help(_("Enable listing of features"));
.help(_("Enable listing of features."));
}

argParser->add_argument("-limit")
Expand Down Expand Up @@ -2353,13 +2353,13 @@ static std::unique_ptr<GDALArgumentParser> GDALVectorInfoOptionsGetParser(
if (psOptionsForBinary)
psOptionsForBinary->aosOpenOptions.AddString(s.c_str());
})
.help(_("Dataset open option (format-specific)"));
.help(_("Dataset open option (format-specific)."));

argParser->add_argument("-nomd")
.flag()
.action([psOptions](const std::string &)
{ psOptions->bShowMetadata = false; })
.help(_("Suppress metadata printing"));
.help(_("Suppress metadata printing."));

argParser->add_argument("-listmdd")
.store_into(psOptions->bListMDD)
Expand Down

0 comments on commit d8ca787

Please sign in to comment.