diff options
Diffstat (limited to 'completions/_hexdump')
-rw-r--r-- | completions/_hexdump | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/completions/_hexdump b/completions/_hexdump index ed5cb08b..a3c2a839 100644 --- a/completions/_hexdump +++ b/completions/_hexdump @@ -19,9 +19,8 @@ _hexdump() esac if [[ $cur == -* ]]; then - local opts="$( _parse_help "$1" )" - [[ $opts ]] || opts="$( _parse_usage "$1" )" - COMPREPLY=( $( compgen -W "$opts" -- "$cur" ) ) + local opts="$(_parse_help "$1")" + COMPREPLY=( $(compgen -W '${opts:-$(_parse_usage "$1")}' -- "$cur") ) return fi |