

@options([make_option('-l', '--list', action='store_true', help='List groups'), make_option('-a', '--add', action='store_true', help='Add group'), make_option('-e', '--enable', type='string', metavar='GID', help='Enable group'), make_option('-d', '--disable', type='string', metavar='GID', help='Disable group'), make_option('-r', '--remove', type='string', metavar='GID', help="Remove group using it's GID")], '')
def do_group(self, arg, opts):
    'Group management'
    if opts.list:
        self.managers['group'].list(arg, opts)
    elif opts.add:
        self.managers['group'].add(arg, opts)
    elif opts.enable:
        self.managers['group'].enable(arg, opts)
    elif opts.disable:
        self.managers['group'].disable(arg, opts)
    elif opts.remove:
        self.managers['group'].remove(arg, opts)
    else:
        return self.sendData('Missing required option')

dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/cli/jcli.py JCliProtocol.do_group/original