summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-10-03 23:39:59 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-10-03 23:39:59 +0000
commit9de86a3a87bd22b5198a577b80d388d3aba6e8c8 (patch)
treeb05b5b6c10913fd973c6f2dc684bb0f80cc5a68f /gnu/usr.bin
parent8fba2b670ef11fee0852e29df43e71eeb4c80353 (diff)
missing -h support; jeffi@rcn.com
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/texinfo/info/info.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gnu/usr.bin/texinfo/info/info.c b/gnu/usr.bin/texinfo/info/info.c
index e64dc813b5a..15d4a0a6798 100644
--- a/gnu/usr.bin/texinfo/info/info.c
+++ b/gnu/usr.bin/texinfo/info/info.c
@@ -1,5 +1,5 @@
/* info.c -- Display nodes of Info files in multiple windows.
- $Id: info.c,v 1.7 2003/03/15 19:16:10 deraadt Exp $
+ $Id: info.c,v 1.8 2003/10/03 23:39:58 deraadt Exp $
Copyright (C) 1993, 96, 97, 98, 99, 2000, 01, 02
Free Software Foundation, Inc.
@@ -120,9 +120,9 @@ static struct option long_options[] = {
/* String describing the shorthand versions of the long options found above. */
#ifdef __MSDOS__
-static char *short_options = "d:n:f:o:ORsb";
+static char *short_options = "d:n:f:ho:ORsb";
#else
-static char *short_options = "d:n:f:o:ORs";
+static char *short_options = "d:n:f:ho:ORs";
#endif
/* When non-zero, the Info window system has been initialized. */
@@ -199,6 +199,10 @@ main (argc, argv)
user_filename = xstrdup (optarg);
break;
+ case 'h':
+ print_help_p = 1;
+ break;
+
/* User is specifying the name of a file to output to. */
case 'o':
if (user_output_filename)