Blame src/centpkg/cli.py

85a850
'''
85a850
    Command line behavior for centpkg
85a850
'''
85a850
#
85a850
# Author(s):
85a850
#            Jesse Keating <jkeating@redhat.com>
85a850
#            Pat Riehecky <riehecky@fnal.gov>
85a850
#            Brian Stinson <bstinson@ksu.edu>
85a850
#
85a850
# This program is free software; you can redistribute it and/or modify it
85a850
# under the terms of the GNU General Public License as published by the
85a850
# Free Software Foundation; either version 2 of the License, or (at your
85a850
# option) any later version.  See http://www.gnu.org/copyleft/gpl.html for
85a850
# the full text of the license.
85a850
a394b1
from __future__ import print_function
Brian Stinson aa8548
from pyrpkg.cli import cliClient
Brian Stinson aa8548
a394b1
Brian Stinson aa8548
class centpkgClient(cliClient):
a394b1
    def __init__(self, config, name=None):
a394b1
        self.DEFAULT_CLI_NAME = 'centpkg'
Brian Stinson aa8548
        super(centpkgClient, self).__init__(config, name)
Brian Stinson 3edf28
Brian Stinson 3edf28
        self.setup_centos_subparsers()
Brian Stinson 3edf28
Brian Stinson 3edf28
    def setup_centos_subparsers(self):
Brian Stinson 3edf28
        self.register_parser()
Brian Stinson 3edf28
Brian Stinson 3edf28
    def register_parser(self):
Brian Stinson 3edf28
        self.parser.add_argument('-S', '--sig', help='Operate as a CentOS SIG user instead of using the Stream distro environment',
Brian Stinson 3edf28
                                 default=False,
Brian Stinson 3edf28
                                 action='store_true')
Brian Stinson 3edf28