summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-10-29 20:36:16 +0100
committerJiří Klimeš <jklimes@redhat.com>2014-10-30 09:17:34 +0100
commit2a40acc67d8d3eaefd8d70e4f899dfc460f1c3c1 (patch)
treeb93d171be552a873f8d8f9a1f7ca10b82771f004
parent1a6468380204bf782ba5974c746af5fc78d410fe (diff)
downloadNetworkManager-2a40acc67d8d3eaefd8d70e4f899dfc460f1c3c1.tar.gz
cli/bash-completion: update bash completion for '--show-secrets' option
-rw-r--r--clients/cli/nmcli-completion7
1 files changed, 5 insertions, 2 deletions
diff --git a/clients/cli/nmcli-completion b/clients/cli/nmcli-completion
index 8c1cfaa713..3017dc40b3 100644
--- a/clients/cli/nmcli-completion
+++ b/clients/cli/nmcli-completion
@@ -170,6 +170,9 @@ _nmcli_compl_OPTIONS()
ask)
_nmcli_array_delete_at words 0
;;
+ show-secrets)
+ _nmcli_array_delete_at words 0
+ ;;
active)
_nmcli_array_delete_at words 0
;;
@@ -761,11 +764,11 @@ _nmcli()
case "$command" in
s|sh|sho|show)
if [[ ${#words[@]} -eq 3 ]]; then
- _nmcli_compl_COMMAND_nl "${words[2]}" "$(printf "id\nuuid\npath\napath\n%s" "$(_nmcli_con_show NAME)")" active
+ _nmcli_compl_COMMAND_nl "${words[2]}" "$(printf "id\nuuid\npath\napath\n%s" "$(_nmcli_con_show NAME)")" active show-secrets
elif [[ ${#words[@]} -gt 3 ]]; then
_nmcli_array_delete_at words 0 1
- LONG_OPTIONS=(help active)
+ LONG_OPTIONS=(help active show-secrets)
HELP_ONLY_AS_FIRST=1
_nmcli_compl_OPTIONS
i=$?