mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
shell-completion: update systemd-analyze bash-completion
* Change --no-man to --man (see dad29df
)
* --{from,to}-pattern require arg
This commit is contained in:
parent
5bac59d920
commit
20ba8107a5
@ -35,8 +35,8 @@ _systemd_analyze() {
|
|||||||
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
|
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||||
|
|
||||||
local -A OPTS=(
|
local -A OPTS=(
|
||||||
[STANDALONE]='--help --version --system --user --from-pattern --to-pattern --order --require --no-pager'
|
[STANDALONE]='--help --version --system --user --order --require --no-pager --man'
|
||||||
[ARG]='-H --host -M --machine --fuzz --man'
|
[ARG]='-H --host -M --machine --fuzz --from-pattern --to-pattern '
|
||||||
)
|
)
|
||||||
|
|
||||||
local -A VERBS=(
|
local -A VERBS=(
|
||||||
@ -102,7 +102,7 @@ _systemd_analyze() {
|
|||||||
|
|
||||||
elif __contains_word "$verb" ${VERBS[VERIFY]}; then
|
elif __contains_word "$verb" ${VERBS[VERIFY]}; then
|
||||||
if [[ $cur = -* ]]; then
|
if [[ $cur = -* ]]; then
|
||||||
comps='--help --version --system --user --no-man'
|
comps='--help --version --system --user --man'
|
||||||
else
|
else
|
||||||
comps=$( compgen -A file -- "$cur" )
|
comps=$( compgen -A file -- "$cur" )
|
||||||
compopt -o filenames
|
compopt -o filenames
|
||||||
|
Loading…
Reference in New Issue
Block a user