You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Jason Warner (JIRA)" <ji...@apache.org> on 2008/01/10 02:19:33 UTC

[jira] Updated: (GSHELL-70) Boolean options should be able to take an optional argument to negate, ie. --foo=false

     [ https://issues.apache.org/jira/browse/GSHELL-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Warner updated GSHELL-70:
-------------------------------

    Attachment: GShell-70.patch

This works as described.  I added a flag in the handler class so that it could be inherited by the boolean handler.  It might be helpful other places in the future, though I don't have a specific scenario in mind.

> Boolean options should be able to take an optional argument to negate, ie. --foo=false
> --------------------------------------------------------------------------------------
>
>                 Key: GSHELL-70
>                 URL: https://issues.apache.org/jira/browse/GSHELL-70
>             Project: GShell
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: Support - CLP
>            Reporter: Jason Dillon
>            Assignee: Jason Warner
>             Fix For: 1.0-alpha-2
>
>         Attachments: GShell-70.patch
>
>
> Boolean options, like:
> {code:java}
> @Option(name="-f", aliases={"--foo"})
> private boolean foo;
> {code}
> Should support negation with:
> {noformat}
> --foo=false
> {noformat}
> or:
> {noformat}
> -f=false
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.