slapt: Use _parse_help.
This commit is contained in:
parent
9cb6a1cd70
commit
3d70a32ce4
@ -18,15 +18,9 @@ _slapt_get()
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ "$cur" == -* ]]; then
|
if [[ "$cur" == -* ]]; then
|
||||||
COMPREPLY=( $( compgen -W '--download-only -d --simulate -s \
|
COMPREPLY=( $( compgen -W '$( _parse_help "$1" --help )' -- "$cur" ) )
|
||||||
--no-prompt -y --prompt -p --reinstall --ignore-excludes \
|
[[ $COMPREPLY == *= ]] && compopt -o nospace
|
||||||
--no-md5 --ignore-dep --no-dep --print-uris --show-stats -S \
|
[[ $COMPREPLY ]] && return 0
|
||||||
--config -c --remove-obsolete --retry --no-upgrade \
|
|
||||||
--update -u --upgrade --dist-upgrade --install -i --install-set \
|
|
||||||
--remove --show --filelist --search --list --available \
|
|
||||||
--installed --clean --autoclean --add-keys \
|
|
||||||
--version --help -h' -- "$cur" ) )
|
|
||||||
return 0
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local i t
|
local i t
|
||||||
@ -103,11 +97,9 @@ _slapt_src()
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ "$cur" == -* ]]; then
|
if [[ "$cur" == -* ]]; then
|
||||||
COMPREPLY=( $( compgen -W '--update -u --list -l --clean -e \
|
COMPREPLY=( $( compgen -W '$( _parse_help "$1" --help )' -- "$cur" ) )
|
||||||
--search -s --show -w --install -i --build -b --fetch -f \
|
[[ $COMPREPLY == *= ]] && compopt -o nospace
|
||||||
--yes -y --config -c --no-dep -n --postprocess -p \
|
[[ $COMPREPLY ]] && return 0
|
||||||
--version -v --help -h' -- "$cur" ) )
|
|
||||||
return 0
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local i t
|
local i t
|
||||||
|
Loading…
x
Reference in New Issue
Block a user