Display configuration information when using the -V option...

This commit is contained in:
hpa 2001-11-14 04:16:23 +00:00
parent 5ec55f35e9
commit 7edb3d5b92
5 changed files with 45 additions and 14 deletions

View file

@ -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]);