systemd-analyze   systemd-analyze 
skipping to change at line 47 skipping to change at line 47
local -A OPTS=( local -A OPTS=(
[STANDALONE]='--help --version --system --user --from-patter n --to-pattern --order --require --no-pager' [STANDALONE]='--help --version --system --user --from-patter n --to-pattern --order --require --no-pager'
[ARG]='-H --host -M --machine' [ARG]='-H --host -M --machine'
) )
local -A VERBS=( local -A VERBS=(
[STANDALONE]='time blame plot dump' [STANDALONE]='time blame plot dump'
[CRITICAL_CHAIN]='critical-chain' [CRITICAL_CHAIN]='critical-chain'
[DOT]='dot' [DOT]='dot'
[LOG_LEVEL]='set-log-level' [LOG_LEVEL]='set-log-level'
[VERIFY]='verify'
) )
_init_completion || return _init_completion || return
for ((i=0; i < COMP_CWORD; i++)); do for ((i=0; i < COMP_CWORD; i++)); do
if __contains_word "${COMP_WORDS[i]}" ${VERBS[*]} && if __contains_word "${COMP_WORDS[i]}" ${VERBS[*]} &&
! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then ! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then
verb=${COMP_WORDS[i]} verb=${COMP_WORDS[i]}
break break
fi fi
skipping to change at line 102 skipping to change at line 103
comps='--help --version --system --user --from-patt ern --to-pattern --order --require' comps='--help --version --system --user --from-patt ern --to-pattern --order --require'
fi fi
elif __contains_word "$verb" ${VERBS[LOG_LEVEL]}; then elif __contains_word "$verb" ${VERBS[LOG_LEVEL]}; then
if [[ $cur = -* ]]; then if [[ $cur = -* ]]; then
comps='--help --version --system --user' comps='--help --version --system --user'
else else
comps='debug info notice warning err crit alert eme rg' comps='debug info notice warning err crit alert eme rg'
fi fi
elif __contains_word "$verb" ${VERBS[VERIFY]}; then
if [[ $cur = -* ]]; then
comps='--help --version --system --user --no-man'
else
comps=$( compgen -A file -- "$cur" )
compopt -o filenames
fi
fi fi
COMPREPLY=( $(compgen -W '$comps' -- "$cur") ) COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
return 0 return 0
} }
complete -F _systemd_analyze systemd-analyze complete -F _systemd_analyze systemd-analyze
 End of changes. 2 change blocks. 
0 lines changed or deleted 9 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/