def run(self, config, args):
        server = config.get('server')

        key = args['-k']
        try:
            if key is None:
                key = input("api key: ")
        except __HOLE__:
            return

        if not confirm("Confirm the change %s's key" % args['<username>']):
            return

        users = Users(server)
        try:
            user = users.set_key(args['<username>'], key)
        except GafferNotFound:
            raise RuntimeError("User %r not found" % args['<username>'])

        print("%s's key changed" % args['<username>'])
dataset/ETHPy150Open benoitc/gaffer/gaffer/cli/commands/user_setkey.py/UserSetPassword.run