aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-03-27 18:51:36 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-03-27 18:51:36 +0000
commit918918e963e1f44e9a698bbd05c3b8c4589a0add (patch)
tree4e0a43f917389c8be83f0a7373a26e1785549571 /main.c
parentb73badc4305130aded7bb54e7a3dd46f88e2c6da (diff)
downloadmandoc-918918e963e1f44e9a698bbd05c3b8c4589a0add.tar.gz
mandoc-918918e963e1f44e9a698bbd05c3b8c4589a0add.tar.zst
mandoc-918918e963e1f44e9a698bbd05c3b8c4589a0add.zip
simplify the SYNOPSIS as well, just like the option lists;
suggested by and OK jmc@
Diffstat (limited to 'main.c')
-rw-r--r--main.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/main.c b/main.c
index bbe18abd..700e3c72 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.286 2017/03/20 14:32:24 schwarze Exp $ */
+/* $Id: main.c,v 1.287 2017/03/27 18:51:36 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2012, 2014-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -592,24 +592,22 @@ usage(enum argmode argmode)
switch (argmode) {
case ARG_FILE:
- fputs("usage: mandoc [-acfhkl] [-I os=name] "
- "[-K encoding] [-mformat] [-O option]\n"
+ fputs("usage: mandoc [-ac] [-I os=name] "
+ "[-K encoding] [-mdoc | -man] [-O options]\n"
"\t [-T output] [-W level] [file ...]\n", stderr);
break;
case ARG_NAME:
- fputs("usage: man [-acfhklw] [-C file] [-I os=name] "
- "[-K encoding] [-M path] [-m path]\n"
- "\t [-O option=value] [-S subsection] [-s section] "
- "[-T output] [-W level]\n"
- "\t [section] name ...\n", stderr);
+ fputs("usage: man [-acfhklw] [-C file] [-M path] "
+ "[-m path] [-S subsection]\n"
+ "\t [[-s] section] name ...\n", stderr);
break;
case ARG_WORD:
- fputs("usage: whatis [-acfhklw] [-C file] "
+ fputs("usage: whatis [-afk] [-C file] "
"[-M path] [-m path] [-O outkey] [-S arch]\n"
"\t [-s section] name ...\n", stderr);
break;
case ARG_EXPR:
- fputs("usage: apropos [-acfhklw] [-C file] "
+ fputs("usage: apropos [-afk] [-C file] "
"[-M path] [-m path] [-O outkey] [-S arch]\n"
"\t [-s section] expression ...\n", stderr);
break;