Uploaded image for project: 'Aesh'
  1. Aesh
  2. AESH-451

Completer doesn't propose options if completer returns no value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.0.0.Alpha1
    • None
    • None
    • None

      command <TAB> ==> options should be listed, argument completer returns no value.
      I remember that it used to work, but recently it doesn't anymore.
      When the following check occurs AeshCommandLineCompletionParser line 220
      if(!haveCompletion && !arg.isRequired() && arg.getValue() != null &&
      parser.getProcessedCommand().completeStatus().value() == null)

      { doListOptions(completeOperation, ""); }

      parser.getProcessedCommand().completeStatus().value() returns the empty string.

      So the test is false and options are not completed.

              spederse@redhat.com Stale Pedersen
              jdenise@redhat.com Jean Francois Denise
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: