getopt32: add new syntax of 'o:+' and 'o:*' for -o NUM and -o LIST
[oweals/busybox.git] / util-linux / getopt.c
index b9dadf13c136e181ff4960d4a7bef6504de969d4..18d49098769781ea83cbf826446e60887fa2411d 100644 (file)
@@ -397,8 +397,7 @@ int getopt_main(int argc, char **argv)
        opt = getopt32(argv, "+o:n:qQs:Tu", &optstr, &name, &s_arg);
 #else
        applet_long_options = getopt_longopts;
-       opt_complementary = "l::";
-       opt = getopt32(argv, "+o:n:qQs:Tual:",
+       opt = getopt32(argv, "+o:n:qQs:Tual:*",
                                        &optstr, &name, &s_arg, &l_arg);
        /* Effectuate the read options for the applet itself */
        while (l_arg) {