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();
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue