views:

26

answers:

0

In a current application I have, the incoming command line parameters are parsed on several "levels".

At the highest level I only wish to parse some options and leave the rest to "lower levels". however, all libraries I've tried so far (Common Cli, args4j, JOpt, gnu.jargs) al throw an "unknown option" exception when I'm trying to feed them, well, unknown options.

I really don't want to write a yet another command line parsing class. Is there a library/class that parses these options and skips over unknown options?

Thank you