Skip to content

Commit

Permalink
Merge pull request xapi-project#5965 from last-genius/private/asultan…
Browse files Browse the repository at this point in the history
…ov/fix-autocompletion

xe autocompletion: Only show required/optional prefixes when parameter name is empty
  • Loading branch information
last-genius authored Sep 3, 2024
2 parents 9156a03 + b60a081 commit 0ac2b0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ocaml/xe-cli/bash-completion
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,9 @@ _xe()
__xe_debug "triggering autocompletion for parameter names, param is '$param'"

IFS=$'\n,'
REQD_OPTIONAL_PARAMS=1
if [ ! "$param" ]; then
REQD_OPTIONAL_PARAMS=1
fi
get_params_for_command "${OLDSTYLE_WORDS[1]}"

# Don't suggest already provided parameters
Expand Down

0 comments on commit 0ac2b0b

Please sign in to comment.