public inbox for
 help / color / mirror / Atom feed
* fhpd: HpdCommandParser added.
@ 2007-07-31 18:42 Nurdin Premji
  0 siblings, 0 replies; only message in thread
From: Nurdin Premji @ 2007-07-31 18:42 UTC (permalink / raw)
  To: frysk

I've added an fhpd command option parser that is heavily based on the 
getopt option parser, (but the help option will not exit the fhpd)

The only assumption made by this parser is that options are located at 
the end of the command.
There is also the ability to add a '--' and anything preceding that is 
considered to be part of the command arguments.

command --variable
will assume 'variable' is an option, whereas
command --variable --
will assume '--variable' is a command argument.

Currently the disassemble command is the only one to use this parser, 
but it should be easy to switch other commands over, CLIHandler has a 
parser added into it.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-31 18:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-31 18:42 fhpd: HpdCommandParser added Nurdin Premji

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).