* info -help expectations?
@ 2007-12-20 9:22 Phil Muldoon
2007-12-20 14:08 ` Andrew Cagney
0 siblings, 1 reply; 3+ messages in thread
From: Phil Muldoon @ 2007-12-20 9:22 UTC (permalink / raw)
To: frysk
I have the info command more or less working so:
(fhpd) info
auxv - Print process auxiliary
debuginfo - Displays debuginfo install paths of a process.
maps - Print process maps
regs - print registers
and
info <subcommand>
works as it should. But MultiLevelCommand interprets:
(fhpd) info -help
Error: Unknown command: -help
As a command. There is a help function, but that seems never to be called.
Regards
Phil
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: info -help expectations?
2007-12-20 9:22 info -help expectations? Phil Muldoon
@ 2007-12-20 14:08 ` Andrew Cagney
2007-12-20 14:34 ` Phil Muldoon
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cagney @ 2007-12-20 14:08 UTC (permalink / raw)
To: Phil Muldoon; +Cc: frysk
Phil Muldoon wrote:
> I have the info command more or less working so:
>
> (fhpd) info
> auxv - Print process auxiliary
> debuginfo - Displays debuginfo install paths of a process.
> maps - Print process maps
> regs - print registers
Hmm; should this print an error (missing command) or the list, and -help
print the list?
Since there's an info command what were <<regs vector>> et.al. can
probably be made <<info vector>> et.al.
>
> and
>
> info <subcommand>
and completion?
>
> works as it should. But MultiLevelCommand interprets:
>
>
> (fhpd) info -help
> Error: Unknown command: -help
nice edge case; does the converse <<help info>> work? Like "run", the
class probably needs an explicit check for -help; option parsing would
be overkill.
Andrew
>
> As a command. There is a help function, but that seems never to be
> called.
>
> Regards
>
> Phil
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: info -help expectations?
2007-12-20 14:08 ` Andrew Cagney
@ 2007-12-20 14:34 ` Phil Muldoon
0 siblings, 0 replies; 3+ messages in thread
From: Phil Muldoon @ 2007-12-20 14:34 UTC (permalink / raw)
To: Andrew Cagney; +Cc: frysk
Andrew Cagney wrote:
> Phil Muldoon wrote:
>> I have the info command more or less working so:
>>
>> (fhpd) info
>> auxv - Print process auxiliary
>> debuginfo - Displays debuginfo install paths of a process.
>> maps - Print process maps
>> regs - print registers
> Hmm; should this print an error (missing command) or the list, and
> -help print the list?
I think typing info and no command, it should automatically print the
info help - it is a more friendly touch. All fodder for discussion
though, in the next workflow meeting in the new year.
>
> Since there's an info command what were <<regs vector>> et.al. can
> probably be made <<info vector>> et.al.
>>
>> and
>>
>> info <subcommand>
> and completion?
(fhpd) info <tab>
auxv debuginfo help
maps regs
>>
>> works as it should. But MultiLevelCommand interprets:
>>
>>
>> (fhpd) info -help
>> Error: Unknown command: -help
> nice edge case; does the converse <<help info>> work? Like "run", the
> class probably needs an explicit check for -help; option parsing would
> be overkill.
(fhpd) help info
auxv - Print process auxiliary
debuginfo - Displays debuginfo install paths of a process.
help - Display this help message.
maps - Print process maps
regs - print registers
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-12-20 14:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-20 9:22 info -help expectations? Phil Muldoon
2007-12-20 14:08 ` Andrew Cagney
2007-12-20 14:34 ` Phil Muldoon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).