def handle(self, *labels, **options):
        """
        More targeted pillow checkpoint reset system - must specify the pillow class_name to reset the checkpoint
        """

        if not labels:
            pillow_names = [config.name for config in get_all_pillow_configs()]
            print "\nNo pillow specified, options are:\n\t%s\n" % ('\n\t'.join(pillow_names))
            sys.exit()

        pillow_name = labels[0]
        pillow_to_use = get_pillow_by_name(pillow_name)
        if not pillow_to_use:
            print ""
            print "\n\tPillow class [%s] not in configuration, what are you trying to do?\n" % pillow_name
            sys.exit()

        if not options.get('interactive'):
            confirm = raw_input("""
            You have requested to reset the checkpoints for the pillow [%s]. This is an irreversible
            operation, and may take a long time, and cause extraneous updates to the requisite
            consumers of the _changes feeds  Are you sure you want to do this?

Type 'yes' to continue, or 'no' to cancel: """ % pillow_name)
        else:
            confirm = 'yes'

        if confirm != 'yes':
            print "Reset cancelled."
            return

        print pillow_to_use.checkpoint.checkpoint_id % "Resetting checkpoint for %s"
        print "\tOld checkpoint: %s" % pillow_to_use.get_checkpoint().sequence
        pillow_to_use.checkpoint.reset()
        print "\n\tNew checkpoint reset to zero"
dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/pillowtop/management/commands/ptop_reset_checkpoint.py/Command.handle/swapped operands of `%`