don't treat "--" as plain argument

pull/2/head
Connor Olding 10 years ago
parent 7774c55dee
commit cf1df4e226
  1. 4
      args.c

@ -39,8 +39,10 @@ void args_parse(int argc_, char **argv_,
continue;
}
/* if arg == "--" */
if (arg[1] == '-' && !arg[2])
if (arg[1] == '-' && !arg[2]) {
argi++;
break;
}
for (flag = arg + 1; *flag; flag++) {
flagfn(*flag, nextarg);

Loading…
Cancel
Save