Let the CLI programs tell about how to show their version

Add to the help text the option to show the version of the CLI program.
This commit is contained in:
Jaap Keuter 2020-12-22 15:57:14 +01:00 committed by Guy Harris
parent b3352bd639
commit 38ab00a094
4 changed files with 4 additions and 0 deletions

View File

@ -855,6 +855,7 @@ print_usage(FILE *output)
fprintf(output, " If -v is used with any of the 'Duplicate Packet\n");
fprintf(output, " Removal' options (-d, -D or -w) then Packet lengths\n");
fprintf(output, " and MD5 hashes are printed to standard-error.\n");
fprintf(output, " -V, --version print version information and exit.\n");
}
struct string_elem {

View File

@ -72,6 +72,7 @@ print_usage(FILE *output)
fprintf(output, "Miscellaneous:\n");
fprintf(output, " -h display this help and exit.\n");
fprintf(output, " -v verbose output.\n");
fprintf(output, " -V print version information and exit.\n");
}
/*

View File

@ -55,6 +55,7 @@ print_usage(FILE *output)
fprintf(output, "Options:\n");
fprintf(output, " -n don't write to output file if the input file is ordered.\n");
fprintf(output, " -h display this help and exit.\n");
fprintf(output, " -v print version information and exit.\n");
}
/* Remember where this frame was in the file */

View File

@ -1432,6 +1432,7 @@ print_usage (FILE *output)
"\n"
"Miscellaneous:\n"
" -h display this help and exit.\n"
" -v print version information and exit.\n"
" -d show detailed debug of parser states.\n"
" -q generate no output at all (automatically disables -d).\n"
"",