From 90abf6007b8853890d1204e9249848383de26416 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 11 Nov 2014 02:43:41 +0000 Subject: 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. --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index e56b2dbc..af31a474 100644 --- a/main.c +++ b/main.c @@ -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 * Copyright (c) 2010, 2011, 2012, 2014 Ingo Schwarze @@ -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': -- cgit v1.2.3-56-ge451