Skip to content

Commit

Permalink
Update help text
Browse files Browse the repository at this point in the history
  • Loading branch information
dfellis committed Mar 25, 2024
1 parent 0447a2b commit 9d416a4
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/apps/filters/h3.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ bool cellToLatLngCmd(int argc, char *argv[]) {
Arg cellToLatLngArg = {
.names = {"cellToLatLng"},
.required = true,
.helpText = "Convert an H3 cell to a latitude/longitude coordinate",
.helpText = "Convert an H3 cell to a WKT POINT coordinate",
};
Arg helpArg = ARG_HELP;
DEFINE_CELL_ARG(cell, cellArg);
Arg *args[] = {&cellToLatLngArg, &helpArg, &cellArg};
if (parseArgs(argc, argv, sizeof(args) / sizeof(Arg *), args, &helpArg,
"Convert an H3 cell to a latitude/longitude coordinate")) {
"Convert an H3 cell to a WKT POINT coordinate")) {
return helpArg.found;
}
LatLng ll;
Expand Down Expand Up @@ -120,16 +120,14 @@ bool cellToBoundaryCmd(int argc, char *argv[]) {
Arg cellToBoundaryArg = {
.names = {"cellToBoundary"},
.required = true,
.helpText =
"Convert an H3 cell to an array of latitude/longitude coordinates "
"defining its boundary",
.helpText = "Convert an H3 cell to a WKT POLYGON defining its boundary",
};
Arg helpArg = ARG_HELP;
DEFINE_CELL_ARG(cell, cellArg);
Arg *args[] = {&cellToBoundaryArg, &helpArg, &cellArg};
if (parseArgs(argc, argv, sizeof(args) / sizeof(Arg *), args, &helpArg,
"Convert an H3 cell to an array of latitude/longitude "
"coordinates defining its boundary")) {
if (parseArgs(
argc, argv, sizeof(args) / sizeof(Arg *), args, &helpArg,
"Convert an H3 cell to a WKT POLYGON defining its boundary")) {
return helpArg.found;
}
CellBoundary cb;
Expand All @@ -155,7 +153,7 @@ bool generalHelp(int argc, char *argv[]) {
Arg helpArg = ARG_HELP;
Arg cellToLatLngArg = {
.names = {"cellToLatLng"},
.helpText = "Convert an H3 cell to a latitude/longitude coordinate",
.helpText = "Convert an H3 cell to a WKT POINT coordinate",
};
Arg latLngToCellArg = {
.names = {"latLngToCell"},
Expand All @@ -164,9 +162,7 @@ bool generalHelp(int argc, char *argv[]) {
};
Arg cellToBoundaryArg = {
.names = {"cellToBoundary"},
.helpText =
"Convert an H3 cell to an array of latitude/longitude coordinates "
"defining its boundary",
.helpText = "Convert an H3 cell to a WKT POLYGON defining its boundary",
};
Arg *args[] = {&helpArg, &cellToLatLngArg, &latLngToCellArg,
&cellToBoundaryArg};
Expand Down

0 comments on commit 9d416a4

Please sign in to comment.