public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
From: Nurdin Premji <npremji@redhat.com>
To: frysk@sourceware.org
Subject: fhpd: HpdCommandParser added.
Date: Tue, 31 Jul 2007 18:42:00 -0000	[thread overview]
Message-ID: <46AF8295.30105@redhat.com> (raw)

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.

                 reply	other threads:[~2007-07-31 18:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46AF8295.30105@redhat.com \
    --to=npremji@redhat.com \
    --cc=frysk@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).