diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-11-09 10:53:48 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-11-09 10:53:48 +0000 |
commit | 7ec3bd32ef3cef1e8f8f96474716f3288bbbca5d (patch) | |
tree | 824b917ae23255f1b7fcfd7f4d69cf91949d5391 /apropos.c | |
parent | 6c38eff672364431564091cddb15592a2ca4a2a0 (diff) | |
download | mandoc-7ec3bd32ef3cef1e8f8f96474716f3288bbbca5d.tar.gz |
Change getopt() to be more like schwarze@'s suggestions.
Diffstat (limited to 'apropos.c')
-rw-r--r-- | apropos.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); } |