Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-5473

Missleading tab completion for edit-batch-line command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.DR5
    • 7.1.0.DR1
    • CLI
    • None
    • Regression

      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

      [standalone@localhost:9990 /] batch 
      [standalone@localhost:9990 / #] :read-resource
      [standalone@localhost:9990 / #] list-batch 
      #1 /:read-resource
      [standalone@localhost:9990 / #] edit-batch-line 1 :read-attribute(name=launch-type)
      #1 :read-attribute(name=launch-type)
      [standalone@localhost:9990 / #] list-batch 
      #1 :read-attribute(name=launch-type)
      

      actual

      [standalone@localhost:9990 / #] edit-batch-line <TAB>
      [standalone@localhost:9990 / #] edit-batch-line --<TAB>
      --help  --line-number
      [standalone@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"
      

      --line-number shouldn't be offered by tab completion for the command.
      Misleading tab completion ends up with syntax error.
      expected

      [standalone@localhost:9990 / #] edit-batch-line <TAB>
      --help
      

      The issue is a regression against EAP 7.0.0 release.

              olubyans@redhat.com Alexey Loubyansky
              pkremens@redhat.com Petr Kremensky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: