mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Print version when run in verbose mode
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
bcabe6ec9f
commit
f16a488b89
1 changed files with 2 additions and 0 deletions
|
@ -213,6 +213,7 @@ void parse_argument(const char *arg)
|
||||||
print_help();
|
print_help();
|
||||||
exit(0);
|
exit(0);
|
||||||
case 'v':
|
case 'v':
|
||||||
|
print_version();
|
||||||
verbose++;
|
verbose++;
|
||||||
continue;
|
continue;
|
||||||
case 'q':
|
case 'q':
|
||||||
|
@ -241,6 +242,7 @@ void parse_argument(const char *arg)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (strcmp(arg, "--verbose") == 0) {
|
if (strcmp(arg, "--verbose") == 0) {
|
||||||
|
print_version();
|
||||||
verbose++;
|
verbose++;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue