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

Property separator not appended after argument value if argument completer uses non-zero offset

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 3.0.0.Alpha9
    • 3.0.0.Alpha7
    • CLI
    • None

    Description

      For example:
      module add --name=foo --dependencies=sun.scripting ==> space character is added at the end.
      module add --name=foo --dependencies=sun.scripting,sun.jdk ==> Nothing happens, no space character added.
      deployment-overlay add --name=foo --contents=foo=/some/file<TAB> ==> Nothing happens, no space character added.

      This seems to be caused by a condition in OperationRequestCompleter - if a suggested value is the same as current user input, ORC replaces the suggestion with a separator.
      This only works if the offset returned by argument completer is 0 - if the completer provides only part of the value, this condition will never be triggered.

      Attachments

        Activity

          People

            spyrkob Bartosz Spyrko-Smietanko
            spyrkob Bartosz Spyrko-Smietanko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: