From ad91a7f4e63d3f6b0353f0ad7c54bac58fb38ab0 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Tue, 9 Jul 2024 13:18:57 +0100 Subject: [PATCH] log fatal exit points --- src/vmrcli.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/vmrcli.c b/src/vmrcli.c index e1daca9..77f11ae 100644 --- a/src/vmrcli.c +++ b/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]];