[jboss-jira] [JBoss JIRA] (WFCORE-1723) OperationRequestCompleter ignores CommandArgument#canAppearNext in choosing ValueCompleter when there's more then one indexed arguments

Bartosz Spyrko-Śmietanko (JIRA) issues at jboss.org
Thu Aug 18 10:21:00 EDT 2016


Bartosz Spyrko-Śmietanko created WFCORE-1723:
------------------------------------------------

             Summary: OperationRequestCompleter ignores CommandArgument#canAppearNext in choosing ValueCompleter when there's more then one indexed arguments
                 Key: WFCORE-1723
                 URL: https://issues.jboss.org/browse/WFCORE-1723
             Project: WildFly Core
          Issue Type: Bug
          Components: CLI
    Affects Versions: 3.0.0.Alpha5
            Reporter: Bartosz Spyrko-Śmietanko
            Assignee: Bartosz Spyrko-Śmietanko


If there are two or more indexed CommandArguments that can be used to complete user entry at the same index, the first one will always be chosen - even if it clashes with previous arguments.

For example:
{{patch rollback ..<TAB>}}
produces a list of directories - this is because PatchHandler registers multiple CommandArguments with index 1 and in this case a completer for patch apply is the first one matched.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jboss-jira mailing list