bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: '(info-stnd)Invoking Info' doesn't mention that '--show-options' req


From: Gavin Smith
Subject: Re: '(info-stnd)Invoking Info' doesn't mention that '--show-options' requires arguments
Date: Sun, 30 Jan 2022 00:35:06 +0000
User-agent: Mutt/1.9.4 (2018-02-28)

On Thu, Jan 27, 2022 at 11:25:38PM +0500, Akbarkhon Variskhanov wrote:
> doc/info-stnd.texi#n483
> <https://git.savannah.gnu.org/cgit/texinfo.git/tree/doc/info-stnd.texi#n483>
> info/info.c#n1109
> <https://git.savannah.gnu.org/cgit/texinfo.git/tree/info/info.c#n1109>
> 
> Something like:
> 
> > '--show-options PROGRAM'
> > '--usage PROGRAM'
> > '-O PROGRAM'
> >
> is needed to make it clearer. I thought info --usage would display a short
> summary for *info*'s options like it does in many other GNU programs but
> *info* returns 1 on exit instead and outputs this message:
> 
> > info: No program name given
> >

I see it is potentially confusing but the -O option doesn't actually take
an argument.  So 'info -O bash' is exactly the same as 'info bash -O'.

It is usually the --help option that is used for a summary of a programs
options rather than --usage.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]