From 3cedc41cf8ab63e894aee6b2d7c1a4cb895c6d08 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 29 Nov 2023 14:40:27 +0100 Subject: Ignore first program argument --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 49c519a..2ff29ac 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3160,7 +3160,7 @@ static void usage() { static void parse_program_args(int argc, char **argv, ProgramArgs *program_args) { memset(program_args, 0, sizeof(*program_args)); - for(int i = 0; i < argc; ++i) { + for(int i = 1; i < argc; ++i) { const char *arg = argv[i]; if(strcmp(arg, "--kms-server") == 0) { program_args->kms_server = true; -- cgit v1.2.3