This is the mail archive of the frysk@sourceware.org mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]