diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-11-29 14:40:27 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-11-29 14:40:27 +0100 |
commit | 3cedc41cf8ab63e894aee6b2d7c1a4cb895c6d08 (patch) | |
tree | ef6949302fade35c3138dcb43a22fe9c8ef67850 /src | |
parent | d277ea7451319905a7546237fa05e447eb915db9 (diff) |
Ignore first program argument
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |