[forge-dev] [JBoss JIRA] Commented: (SEAMFORGE-28) Should provide ability to specify mutually exclusive command options

Lincoln Baxter III (JIRA) jira-events at lists.jboss.org
Mon Jan 31 09:33:39 EST 2011


    [ https://issues.jboss.org/browse/SEAMFORGE-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12579049#comment-12579049 ] 

Lincoln Baxter III commented on SEAMFORGE-28:
---------------------------------------------

Actually, this could also be done with a second annotation:

@Command
public void command(
@Option(...) @OptionGroup(1, type=SELECT_ONE) Resource<?> path,
@Option(...) @OptionGroup(1) String gav )

Where only one option in each group must specify the type, but all must specify the group number or ID.

> Should provide ability to specify mutually exclusive command options
> --------------------------------------------------------------------
>
>                 Key: SEAMFORGE-28
>                 URL: https://issues.jboss.org/browse/SEAMFORGE-28
>             Project: Seam Forge
>          Issue Type: Feature Request
>          Components: Plugin API
>    Affects Versions: 1.0.0.Alpha1
>            Reporter: Lincoln Baxter III
>            Priority: Minor
>
> When developing Plugin @Commands, it is sometimes convenient to specify options from which only one must be selected 
> For example: 
> * providing a maven GAV "org.jboss.seam.forge:forge-parent:1.0.0"
> * specifying the path to said project "~/projects/forge/"
> Both inputs are valid, but only one is required. If one is selected, the other should be hidden from completion. (Or some such interaction.) 
> If both are missing, Forge should prompt for one to be completed.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the forge-dev mailing list