cli/bash-completion: fix wrong completion for nmcli device wimax
wimax does not support these arguments. This was a copy&paste error from wifi. Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:

committed by
Jiří Klimeš

parent
630a1ccbce
commit
aa931ab1f2
@@ -957,24 +957,6 @@ _nmcli()
|
|||||||
OPTIONS=(ifname nsp)
|
OPTIONS=(ifname nsp)
|
||||||
_nmcli_complete_COMMAND_ARGS
|
_nmcli_complete_COMMAND_ARGS
|
||||||
;;
|
;;
|
||||||
c|co|con|conn|conne|connec|connect)
|
|
||||||
if [[ ${#words[@]} -eq 4 ]]; then
|
|
||||||
if [[ "${words[3]}" = "" ]]; then
|
|
||||||
_nmcli_list_nl "$(_nmcli_ap_ssid)"
|
|
||||||
else
|
|
||||||
_nmcli_list_nl "$(_nmcli_ap_ssid) $(_nmcli_ap_bssid)"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
words=("${words[@]:4}")
|
|
||||||
OPTIONS=(password wep-key-type ifname bssid name private)
|
|
||||||
_nmcli_complete_COMMAND_ARGS
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
r|re|res|resc|resca|rescan)
|
|
||||||
words=("${words[@]:3}")
|
|
||||||
OPTIONS=(ifname)
|
|
||||||
_nmcli_complete_COMMAND_ARGS
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user