getopt32: add new syntax of 'o:+' and 'o:*' for -o NUM and -o LIST
[oweals/busybox.git] / miscutils / ionice.c
index 0c14256ab955837034b03a4e24b4dc8add0a8dfd..5fcb653a839485c044e17cb4f71f0882c1e48492 100644 (file)
@@ -60,9 +60,8 @@ int ionice_main(int argc UNUSED_PARAM, char **argv)
        };
 
        /* Numeric params */
-       opt_complementary = "n+:c+:p+";
        /* '+': stop at first non-option */
-       opt = getopt32(argv, "+n:c:p:", &pri, &ioclass, &pid);
+       opt = getopt32(argv, "+n:+c:+p:+", &pri, &ioclass, &pid);
        argv += optind;
 
        if (opt & OPT_c) {