Skip to content

Commit

Permalink
Define a CONSTANT for the help's arg length
Browse files Browse the repository at this point in the history
  • Loading branch information
dfellis committed Feb 22, 2024
1 parent 1c63794 commit 0b761dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/apps/filters/h3.c
Expand Up @@ -164,11 +164,13 @@ bool generalHelp(int argc, char *argv[]) {
};
Arg *args[] = {&helpArg, &cellToLatLngArg, &latLngToCellArg,
&cellToBoundaryArg};
#define ARGLEN 4

const char *helpText =
"Please use one of the subcommands listed to perform an H3 "
"calculation. Use h3 <SUBCOMMAND> --help for details on the usage of "
"any subcommand.";
return parseArgs(argc, argv, 4, args, &helpArg, helpText);
return parseArgs(argc, argv, ARGLEN, args, &helpArg, helpText);
}

int main(int argc, char *argv[]) {
Expand Down

0 comments on commit 0b761dd

Please sign in to comment.