Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-1682

Missleading tab completion for edit-batch-line command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.Alpha6
    • None
    • CLI
    • None

      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.

            jdenise@redhat.com Jean Francois Denise
            pkremens@redhat.com Petr Kremensky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: