diff options
Diffstat (limited to 'completions/ipv6calc')
-rw-r--r-- | completions/ipv6calc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/completions/ipv6calc b/completions/ipv6calc index f001999a..6a5771ef 100644 --- a/completions/ipv6calc +++ b/completions/ipv6calc @@ -28,13 +28,8 @@ _ipv6calc() $split && return if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W '--help --debug --quiet --in --out --action - --examples --showinfo --show_types --machine_readable --db-geoip - --db-geoip-default --db-ip2location-ipv4 --db-ip2location-ipv6 - --lowercase --uppercase --printprefix --printsuffix --maskprefix - --masksuffix --printstart --printend --printcompressed - --printuncompressed --printfulluncompressed --printmirrored' \ - -- "$cur") ) + COMPREPLY=( $(compgen -W '$("$1" -h 2>&1 | + command sed -e "s/[][]//g" | _parse_help -)' -- "$cur") ) fi } && |