#compdef lmishell

# Copyright (C) 2013 Red Hat, Inc.  All rights reserved.
#
# This library 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.
#
# This library 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
#
# Authors: Peter Hatina <phatina@redhat.com>
#
# Zsh completion for OpenLMI Shell

_lmishell() {
    local curcontext="$curcontext" state line
    typeset -A opt_args

    _arguments -C \
        '(- 1 *)'{-h,--help}'[print help message and exit]' \
        '(- 1 *):OpenLMI Shell Script:_files -g \*.\(lmi\|py\)' \
        '(-i --interact)'{-i,--interact}'[inspect interactively after running a script]' \
        '(-v --verbose)'{-v,--verbose}'[print log messages to stderr]' \
        '(-m --more-verbose)'{-m,--more-verbose}'[print all log messages to stderr]' \
        '(-q --quiet)'{-q,--quiet}'[do not print any log messages to stderr]' \
        '(-n --noverify)'{-n,--noverify}'[do not verify CIMOM SSL certificate]'
}
