summaryrefslogtreecommitdiffstats
path: root/apropos.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-11-09 10:53:48 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-11-09 10:53:48 +0000
commit7ec3bd32ef3cef1e8f8f96474716f3288bbbca5d (patch)
tree824b917ae23255f1b7fcfd7f4d69cf91949d5391 /apropos.c
parent6c38eff672364431564091cddb15592a2ca4a2a0 (diff)
downloadmandoc-7ec3bd32ef3cef1e8f8f96474716f3288bbbca5d.tar.gz
Change getopt() to be more like schwarze@'s suggestions.
Diffstat (limited to 'apropos.c')
-rw-r--r--apropos.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apropos.c b/apropos.c
index d8b757a3..8d34cd58 100644
--- a/apropos.c
+++ b/apropos.c
@@ -72,12 +72,12 @@ main(int argc, char *argv[])
else
++progname;
- while (-1 != (ch = getopt(argc, argv, "a:c:I:t:")))
+ while (-1 != (ch = getopt(argc, argv, "S:s:It:")))
switch (ch) {
- case ('a'):
+ case ('S'):
opts.arch = optarg;
break;
- case ('c'):
+ case ('s'):
opts.cat = optarg;
break;
case ('I'):
@@ -159,8 +159,8 @@ usage(void)
fprintf(stderr, "usage: %s "
"[-I] "
- "[-a arch] "
- "[-c cat] "
+ "[-S arch] "
+ "[-s section] "
"[-t type[,...]] "
"key\n", progname);
}