[jboss-jira] [JBoss JIRA] (WFCORE-1682) Missleading tab completion for edit-batch-line command
Petr Kremensky (JIRA)
issues at jboss.org
Tue Aug 2 01:38:00 EDT 2016
[ https://issues.jboss.org/browse/WFCORE-1682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13273710#comment-13273710 ]
Petr Kremensky commented on WFCORE-1682:
----------------------------------------
WFCORE-1487 fix works fine for some of the commands (connect, patch)
{noformat}
[disconnected /] connect --controller=127.0.0.1
[standalone at 127.0.0.1:9990 /]
{noformat}
but is problematic for the rest of them (\*batch\*, if)
{noformat}
[standalone at 127.0.0.1:9990 / #] move-batch-line --current=1 --new=2
Missing line number.
{noformat}
> Missleading tab completion for edit-batch-line command
> ------------------------------------------------------
>
> Key: WFCORE-1682
> URL: https://issues.jboss.org/browse/WFCORE-1682
> Project: WildFly Core
> Issue Type: Bug
> Components: CLI
> Reporter: Petr Kremensky
> Assignee: Alexey Loubyansky
>
> Tab completion for edit-batch-list command suggest to use --line-number as a command option, but that is not how the command works.
> *command usage*
> {noformat}
> [standalone at localhost:9990 /] batch
> [standalone at localhost:9990 / #] :read-resource
> [standalone at localhost:9990 / #] list-batch
> #1 /:read-resource
> [standalone at localhost:9990 / #] edit-batch-line 1 :read-attribute(name=launch-type)
> #1 :read-attribute(name=launch-type)
> [standalone at localhost:9990 / #] list-batch
> #1 :read-attribute(name=launch-type)
> {noformat}
> *actual*
> {noformat}
> [standalone at localhost:9990 / #] edit-batch-line <TAB>
> [standalone at localhost:9990 / #] edit-batch-line --<TAB>
> --help --line-number
> [standalone at localhost:9990 / #] edit-batch-line --line-number=1 :read-attribute(name=launch-type)
> Failed to parse line number '--line-number=1': For input string: "--line-number=1"
> {noformat}
> {{--line-number}} shouldn't be offered by tab completion for the command.
> Misleading tab completion ends up with syntax error.
> *expected*
> {noformat}
> [standalone at localhost:9990 / #] edit-batch-line <TAB>
> --help
> {noformat}
> The issue is a regression against EAP 7.0.0 release.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list