[common] options: Fix regression in option parsing logic

This commit is contained in:
Netboy3 authored and Geoffrey McRae committed 2023-05-03 18:20:01 +10:00
1 parent 9d66a68403
commit 53525847fd
1 file changed
+1
+1
View File
@@ -346,6 +346,7 @@ bool option_parse(int argc, char * argv[])
o = state.options[i];
if (o->type != OPTION_TYPE_BOOL && a < argc - 1)
{
++a;
char * v = argv[a];
//ltrim