def METHOD_NAME(self, **options):
    queuename = options.get('queuename')
    if not queuename:
        raise CommandError("Specify `--queuename` to use this command.")
    inst_per = options.get('instance_percent')
    instance_min = options.get('instance_minimum')
    hostname_list = []
    if options.get('hostnames'):
        hostname_list = options.get('hostnames').split(",")
    rq = RegisterQueue(queuename, inst_per, instance_min, hostname_list)
    rq.register()
    if rq.instance_not_found_err:
        print(rq.instance_not_found_err.message)
        sys.exit(1)