getopt32: add new syntax of 'o:+' and 'o:*' for -o NUM and -o LIST
[oweals/busybox.git] / mailutils / sendmail.c
index 5143fac8f9f78bc874771780dbfa8b6284d4feb3..fb4dbb3da803761d2e95e550728fcbefdf237ce9 100644 (file)
@@ -247,11 +247,11 @@ int sendmail_main(int argc UNUSED_PARAM, char **argv)
 
        // parse options
        // -v is a counter, -H and -S are mutually exclusive, -a is a list
-       opt_complementary = "vv:w+:H--S:S--H:a::";
+       opt_complementary = "vv:H--S:S--H";
        // N.B. since -H and -S are mutually exclusive they do not interfere in opt_connect
        // -a is for ssmtp (http://downloads.openwrt.org/people/nico/man/man8/ssmtp.8.html) compatibility,
        // it is still under development.
-       opts = getopt32(argv, "tf:o:iw:H:S:a::v", &opt_from, NULL,
+       opts = getopt32(argv, "tf:o:iw:+H:S:a:*:v", &opt_from, NULL,
                        &timeout, &opt_connect, &opt_connect, &list, &verbose);
        //argc -= optind;
        argv += optind;