Print version when run in verbose mode

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-11-09 06:21:18 -08:00
parent bcabe6ec9f
commit f16a488b89

View file

@ -213,6 +213,7 @@ void parse_argument(const char *arg)
print_help();
exit(0);
case 'v':
print_version();
verbose++;
continue;
case 'q':
@ -241,6 +242,7 @@ void parse_argument(const char *arg)
return;
}
if (strcmp(arg, "--verbose") == 0) {
print_version();
verbose++;
return;
}