From 78a8df37d8693b0dd9cda3d3d73824fc79fb1aff Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 3 Oct 2013 16:03:07 +0200 Subject: [PATCH] cli: fix bash completion to show general options This fixes an error in the following example: $ nmcli con add type bridge con-name test-bridge Before, general options such as 'autoconnect' and 'ifname' were wrongly not suggested. Signed-off-by: Thomas Haller --- cli/completion/nmcli | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/completion/nmcli b/cli/completion/nmcli index 9178ef624..393789b84 100644 --- a/cli/completion/nmcli +++ b/cli/completion/nmcli @@ -732,9 +732,9 @@ _nmcli() # means, we are at the end of options. Nothing more to parse, just show # what are the options now. if [[ "${#OPTIONS_MANDATORY[@]}" -gt 0 ]]; then - _nmcli_list "$(echo "${OPTIONS_TYPED[@]}")" + _nmcli_list "$(echo "${OPTIONS[@]}")" else - _nmcli_list "$(echo "${OPTIONS_TYPED[@]}") $(echo "${OPTIONS_IP[@]}")" + _nmcli_list "$(echo "${OPTIONS[@]}") $(echo "${OPTIONS_IP[@]}")" fi return 0 fi