You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Eric Sirianni <er...@gmail.com> on 2006/07/20 15:45:27 UTC

[CLI 2.0] Case insensitive options/parsing?

Is there a way to make the CLI options case insensitive in CLI 2.0?
For example, I would like the following to parse and bind 2 to the
same "foo" option:

# mycommand -foo 2
# mycommand -FOO 2

Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [CLI 2.0] Case insensitive options/parsing?

Posted by Andrew Shirley <ak...@decisionsoft.co.uk>.
On Thu, Jul 20, 2006 at 09:45:27AM -0400, Eric Sirianni wrote:
> Is there a way to make the CLI options case insensitive in CLI 2.0?

No, not currently. If you want to work on this I suggest changing
getTriggers in all descendants of OptionImpl although this is based on a quick
glance at the code and there might be a better way of doing it.

Either way if this is important to you file it as an enhancement bug in jira.

Andrew Shirley

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org