This is the mail archive of the
frysk@sourceware.org
mailing list for the frysk project.
fhpd: HpdCommandParser added.
- From: Nurdin Premji <npremji at redhat dot com>
- To: frysk at sourceware dot org
- Date: Tue, 31 Jul 2007 14:42:29 -0400
- Subject: fhpd: HpdCommandParser added.
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.
So:
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.