mirror of
https://github.com/onyx-and-iris/vmrcli.git
synced 2025-01-18 00:31:09 +00:00
log fatal exit points
This commit is contained in:
parent
8d9e70b79a
commit
ad91a7f4e6
12
src/vmrcli.c
12
src/vmrcli.c
@ -126,14 +126,14 @@ int main(int argc, char *argv[])
|
||||
vflag = true;
|
||||
break;
|
||||
case '?':
|
||||
log_warn("unknown option -- '%c'\n"
|
||||
"Try .\\vmrcli.exe -h for more information.",
|
||||
optopt);
|
||||
log_fatal("unknown option -- '%c'\n"
|
||||
"Try .\\vmrcli.exe -h for more information.",
|
||||
optopt);
|
||||
exit(EXIT_FAILURE);
|
||||
case ':':
|
||||
log_warn("missing argument for option -- '%c'\n"
|
||||
"Try .\\vmrcli.exe -h for more information.",
|
||||
optopt);
|
||||
log_fatal("missing argument for option -- '%c'\n"
|
||||
"Try .\\vmrcli.exe -h for more information.",
|
||||
optopt);
|
||||
exit(EXIT_FAILURE);
|
||||
case 'h':
|
||||
[[fallthrough]];
|
||||
|
Loading…
Reference in New Issue
Block a user