about summary refs log tree commit diff
path: root/manual
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2001-07-24 16:28:48 +0000
committerAndreas Jaeger <aj@suse.de>2001-07-24 16:28:48 +0000
commit941cee2737b1b067aeb24b8a7011f22947af1710 (patch)
tree82bd9c366028bd08df97f032c092ce2a63eae3f2 /manual
parentfaf90ba91c2f54515de5085f594f7564f2b5de59 (diff)
downloadglibc-941cee2737b1b067aeb24b8a7011f22947af1710.tar.gz
glibc-941cee2737b1b067aeb24b8a7011f22947af1710.tar.xz
glibc-941cee2737b1b067aeb24b8a7011f22947af1710.zip
(main): Fix which options take arguments.
Diffstat (limited to 'manual')
-rw-r--r--manual/examples/longopt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/manual/examples/longopt.c b/manual/examples/longopt.c
index e6567c7caf..1661327f53 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}
 	};