diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-11-11 02:43:41 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-11-11 02:43:41 +0000 |
commit | 90abf6007b8853890d1204e9249848383de26416 (patch) | |
tree | 15db8526d5923768c103b28a21a1fece79d6d9f9 /main.c | |
parent | 022b8bdab4bc87d590cb930db853e246e42e46ae (diff) | |
download | mandoc-90abf6007b8853890d1204e9249848383de26416.tar.gz mandoc-90abf6007b8853890d1204e9249848383de26416.tar.zst mandoc-90abf6007b8853890d1204e9249848383de26416.zip |
Let -h imply -c (that is, not use the pager).
Usually, -h output is short, so the pager is just a nuisance.
Also, traditional man(1) does not use a pager for -h.
Triggered by a remark of deraadt@ on ICB.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.197 2014/11/11 02:10:04 schwarze Exp $ */ +/* $Id: main.c,v 1.198 2014/11/11 02:43:41 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2011, 2012, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -177,6 +177,7 @@ main(int argc, char *argv[]) case 'h': (void)strlcat(curp.outopts, "synopsis,", BUFSIZ); synopsis_only = 1; + use_pager = 0; outmode = OUTMODE_ALL; break; case 'I': |