summaryrefslogtreecommitdiff
path: root/usr.bin/less/opttbl.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/less/opttbl.c')
-rw-r--r--usr.bin/less/opttbl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/usr.bin/less/opttbl.c b/usr.bin/less/opttbl.c
index d1c23c3eecf..f3f45c8b014 100644
--- a/usr.bin/less/opttbl.c
+++ b/usr.bin/less/opttbl.c
@@ -36,6 +36,7 @@ public int forw_scroll; /* Repaint screen on forward movement */
public int caseless; /* Do "caseless" searches */
public int linenums; /* Use line numbers */
public int autobuf; /* Automatically allocate buffers as needed */
+public int nohelp; /* Disable the HELP command */
public int bufspace; /* Max buffer space per file (K) */
public int ctldisp; /* Send control chars to screen untranslated */
public int force_open; /* Open the file even if not regular file */
@@ -216,6 +217,14 @@ static struct loption option[] =
NULL
}
},
+ { 'H', NULL,
+ BOOL|NO_TOGGLE, OPT_OFF, &nohelp, NULL,
+ {
+ "Allow help command",
+ "Don't allow help command",
+ NULL
+ }
+ },
{ 'i', &i_optname,
TRIPLE|HL_REPAINT, OPT_OFF, &caseless, opt_i,
{