From 9de86a3a87bd22b5198a577b80d388d3aba6e8c8 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 3 Oct 2003 23:39:59 +0000 Subject: missing -h support; jeffi@rcn.com --- gnu/usr.bin/texinfo/info/info.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'gnu/usr.bin/texinfo/info') 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) -- cgit v1.2.3