projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
faf90ba
)
(main): Fix which options take arguments.
author
Andreas Jaeger
<aj@suse.de>
Tue, 24 Jul 2001 16:28:48 +0000
(16:28 +0000)
committer
Andreas Jaeger
<aj@suse.de>
Tue, 24 Jul 2001 16:28:48 +0000
(16:28 +0000)
manual/examples/longopt.c
patch
|
blob
|
history
diff --git
a/manual/examples/longopt.c
b/manual/examples/longopt.c
index
e6567c7
..
1661327
100644
(file)
--- 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}
};