forked from osmocom/wireshark
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.
(cherry picked from commit 38ab00a094
)
This commit is contained in:
parent
ed87507e1a
commit
54ddb2e9f9
|
@ -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 {
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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"
|
||||
"",
|
||||
|
|
Loading…
Reference in New Issue