diff options
Diffstat (limited to 'completions/strings')
-rw-r--r-- | completions/strings | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/completions/strings b/completions/strings index 27c00497..b4e13ab6 100644 --- a/completions/strings +++ b/completions/strings @@ -6,20 +6,21 @@ _strings() _init_completion -s || return case $prev in - -h|--help|-v|-V|--version|-n|--bytes) + --help|--version|--bytes|-!(-*)[hvVn]) return ;; - -t|--radix) - COMPREPLY=( $( compgen -W 'o d x' -- "$cur" ) ) + --radix|-!(-*)t) + COMPREPLY=( $(compgen -W 'o d x' -- "$cur") ) return ;; - -T|--target) - COMPREPLY=( $( compgen -W '$( LC_ALL=C "$1" --help 2>/dev/null | \ - command sed -ne "s/: supported targets: \(.*\)/\1/p" )' -- "$cur" ) ) + --target|-!(-*)T) + COMPREPLY=( $(compgen -W '$(LC_ALL=C "$1" --help 2>/dev/null | \ + command sed -ne "s/: supported targets: \(.*\)/\1/p")' \ + -- "$cur") ) return ;; - -e|--encoding) - COMPREPLY=( $( compgen -W 's S b l B L' -- "$cur" ) ) + --encoding|-!(-*)e) + COMPREPLY=( $(compgen -W 's S b l B L' -- "$cur") ) return ;; esac @@ -27,7 +28,7 @@ _strings() $split && return if [[ $cur == -* ]]; then - COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) + COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") ) [[ $COMPREPLY == *= ]] && compopt -o nospace return elif [[ $cur == @* ]]; then |