googler-completion.bash (googler-4.2) | : | googler-completion.bash (googler-4.3.1) | ||
---|---|---|---|---|
skipping to change at line 21 | skipping to change at line 21 | |||
local cur=$2 prev=$3 | local cur=$2 prev=$3 | |||
local -a opts opts_with_args | local -a opts opts_with_args | |||
opts=( | opts=( | |||
-h --help | -h --help | |||
-s --start | -s --start | |||
-n --count | -n --count | |||
-N --news | -N --news | |||
-V --videos | -V --videos | |||
-c --tld | -c --tld | |||
-l --lang | -l --lang | |||
-g --geoloc | ||||
-x --exact | -x --exact | |||
--colorize | --colorize | |||
-C --nocolor | -C --nocolor | |||
--colors | --colors | |||
-j --first --lucky | -j --first --lucky | |||
-t --time | -t --time | |||
--from | --from | |||
--to | --to | |||
-w --site | -w --site | |||
-e --exclude | ||||
--unfilter | --unfilter | |||
-p --proxy | -p --proxy | |||
--notweak | --notweak | |||
--json | --json | |||
--url-handler | --url-handler | |||
--show-browser-logs | --show-browser-logs | |||
--np --noprompt | --np --noprompt | |||
-u --upgrade | -u --upgrade | |||
--include-git | --include-git | |||
-v --version | -v --version | |||
-d --debug | -d --debug | |||
) | ) | |||
opts_with_arg=( | opts_with_arg=( | |||
-s --start | -s --start | |||
-n --count | -n --count | |||
-c --tld | -c --tld | |||
-l --lang | -l --lang | |||
-g --geoloc | ||||
--colorize | --colorize | |||
--colors | --colors | |||
-t --time | -t --time | |||
--from | --from | |||
--to | --to | |||
-w --site | -w --site | |||
-e --exclude | ||||
-p --proxy | -p --proxy | |||
--url-handler | --url-handler | |||
) | ) | |||
if [[ $cur == -* ]]; then | if [[ $cur == -* ]]; then | |||
# The current argument is an option -- complete option names. | # The current argument is an option -- complete option names. | |||
COMPREPLY=( $(compgen -W "${opts[*]}" -- "$cur") ) | COMPREPLY=( $(compgen -W "${opts[*]}" -- "$cur") ) | |||
else | else | |||
# Do not complete option arguments; only autocomplete positional | # Do not complete option arguments; only autocomplete positional | |||
# arguments (queries). | # arguments (queries). | |||
End of changes. 4 change blocks. | ||||
0 lines changed or deleted | 4 lines changed or added |