

@options([make_option('-l', '--list', action='store_true', help='List all users or a group users when provided with GID'), make_option('-a', '--add', action='store_true', help='Add user'), make_option('-e', '--enable', type='string', metavar='UID', help='Enable user'), make_option('-d', '--disable', type='string', metavar='UID', help='Disable user'), make_option('-u', '--update', type='string', metavar='UID', help="Update user using it's UID"), make_option('-r', '--remove', type='string', metavar='UID', help="Remove user using it's UID"), make_option('-s', '--show', type='string', metavar='UID', help="Show user using it's UID"), make_option('--smpp-unbind', type='string', metavar='UID', help="Unbind user from smpp server using it's UID"), make_option('--smpp-ban', type='string', metavar='UID', help="Unbind and ban user from smpp server using it's UID")], '')
def do_user(self, arg, opts):
    'User management'
    if opts.list:
        self.managers['user'].list(arg, opts)
    elif arg.add:
        self.managers['user'].add(arg, opts)
    elif opts.enable:
        self.managers['user'].enable(arg, opts)
    elif opts.disable:
        self.managers['user'].disable(arg, opts)
    elif opts.update:
        self.managers['user'].update(arg, opts)
    elif opts.remove:
        self.managers['user'].remove(arg, opts)
    elif opts.show:
        self.managers['user'].show(arg, opts)
    elif opts.smpp_unbind:
        self.managers['user'].unbind(arg, opts)
    elif opts.smpp_ban:
        self.managers['user'].ban(arg, opts)
    else:
        return self.sendData('Missing required option')

dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/cli/jcli.py JCliProtocol.do_user/VarMisuse@206/414 `opts`->`arg`