From: Andreas Jaeger Date: Tue, 24 Jul 2001 16:28:48 +0000 (+0000) Subject: (main): Fix which options take arguments. X-Git-Tag: cvs/glibc-2_2_4~151 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=941cee2737b1b067aeb24b8a7011f22947af1710;p=thirdparty%2Fglibc.git (main): Fix which options take arguments. --- diff --git a/manual/examples/longopt.c b/manual/examples/longopt.c index e6567c7caf6..1661327f53b 100644 --- a/manual/examples/longopt.c +++ b/manual/examples/longopt.c @@ -21,10 +21,10 @@ main (argc, argv) {"brief", no_argument, &verbose_flag, 0}, /* These options don't set a flag. We distinguish them by their indices. */ - {"add", required_argument, 0, 'a'}, + {"add", no_argument, 0, 'a'}, {"append", no_argument, 0, 'b'}, {"delete", required_argument, 0, 'd'}, - {"create", no_argument, 0, 'c'}, + {"create", required_argument, 0, 'c'}, {"file", required_argument, 0, 'f'}, {0, 0, 0, 0} };