# This file is part of systemd.
# Copyright 2014 Thomas
H.P. Andersen
# systemd is free software; you can redistribute it
and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
# systemd is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
# You should have received a copy of the GNU Lesser General Public License
[[ $w = "$word" ]] && return
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
[STANDALONE]='-h --help --version'
if [[ "$cur" = -* ]]; then
COMPREPLY=( $(compgen -W '${OPTS[*]}' -- "$cur") )
for ((i=0; i < COMP_CWORD; i++)); do
if __contains_word "${COMP_WORDS[i]}" ${VERBS[*]}; then
elif __contains_word "$verb" ${VERBS[STANDALONE]}; then
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
complete -F _bootctl bootctl