forked from mirrors/tftp-hpa-google
Display configuration information when using the -V option...
This commit is contained in:
parent
5ec55f35e9
commit
7edb3d5b92
5 changed files with 45 additions and 14 deletions
|
@ -192,8 +192,8 @@ main(int argc, char *argv[])
|
|||
verbose = 1;
|
||||
break;
|
||||
case 'V':
|
||||
/* Print version to stdout and exit */
|
||||
printf("%s\n", VERSION);
|
||||
/* Print version and configuration to stdout and exit */
|
||||
printf("%s\n", TFTP_CONFIG_STR);
|
||||
exit(0);
|
||||
default:
|
||||
fprintf(stderr, "Usage: %s [-v] [host]\n", argv[0]);
|
||||
|
|
|
@ -59,7 +59,8 @@ command below.)
|
|||
Default to verbose mode.
|
||||
.TP
|
||||
.B \-V
|
||||
Print the version number to standard output, then exit gracefully.
|
||||
Print the version number and configuration to standard output, then
|
||||
exit gracefully.
|
||||
.SH COMMANDS
|
||||
Once
|
||||
.B tftp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue