I want this for node:

http://linux.die.net/man/3/getopt_long

In particular, I want to process options in order stopping at the
first unrecognized/non-option token. Ideally, with "normal" options
parsing rules (single character options can be combined, space can be
absent between an option and it's value, --no-flag is inverse of
--flag, etc.).

I've wasted too much time puzzling over the various options parsers
out there (which are mostly remarkably silent on the question of what
option syntax they actually support :-().

Is their someone here who shares my pain, and can point me to the right module?

Don't suggest optimist, it parses everything, and can't tell if an
option takes an arg or not. Commander wants to parse everything as
well.

I am looking for somthing that can parse

node cmd.js -abf FILE --this THIS --flag --no-flag NOTANOPTION ...
--this-is-not-a-flag-to-cmd.js ... and other random stuff ....

Up to NOTANOPTION are all known options to cmd.js, NOTANOPTION and
everything after it should NOT be examined by the options parser.

Cheers,
Sam

-- 
http://strongloop.com, Node.js products, support, and consulting

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to