don't bash-complete the '-h' option
Change-Id: Iafd424355167883a10048a0fc0ed13515186a047
This commit is contained in:
parent
24ad114d3b
commit
44038f3397
|
@ -9,7 +9,7 @@ _nova()
|
|||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||
|
||||
if [ "x$_nova_opts" == "x" ] ; then
|
||||
nbc="`nova bash-completion`"
|
||||
nbc="`nova bash-completion | sed -e "s/\s-h\s/\s/"`"
|
||||
_nova_opts="`echo "$nbc" | sed -e "s/--[a-z0-9_-]*//g" -e "s/\s\s*/ /g"`"
|
||||
_nova_flags="`echo " $nbc" | sed -e "s/ [^-][^-][a-z0-9_-]*//g" -e "s/\s\s*/ /g"`"
|
||||
_nova_opts_exp="`echo "$_nova_opts" | sed -e "s/\s/|/g"`"
|
||||
|
|
Loading…
Reference in New Issue