def handle(self, *args, **kwargs): if len(args) == 0: sys.exit("You must supply the number of invites as an argument.") try: num_of_invites = int(args[0]) except ValueError: sys.exit("The argument for number of invites must be an integer.") InvitationStat.topoff(num_of_invites)
def handle(self, *args, **options): InvitationStat.topoff(options['num_invites'])
def handle(self, *args, **options): InvitationStat.topoff(options["num_invites"])