def handle(self, *args, **options):
    if (len(args) == 0):
        raise CommandError('You must provide at least one metric name')
    slugs = args
    cap = options['cap']
    days = options['num_days']
    randomize = options['randomize']
    self.stdout.write('\nGenerating metrics using the following:\n')
    self.stdout.write('Slugs: {0}\n'.format(u', '.join(slugs)))
    self.stdout.write('Days: {0}\n'.format(days))
    self.stdout.write('Randomize: {0}\n'.format(randomize))
    self.stdout.write('Cap: {0}\n'.format(cap))
    for slug in slugs:
        generate_test_metrics(slug, num=days, randomize=randomize, cap=cap)
def handle(self, *args, **options):
    if (len(args) == 0):
        raise CommandError('You must provide at least one metric name')
    slugs = args
    cap = options['cap']
    days = options['num_days']
    randomize = options['randomize']
    self.stdout.write('\nGenerating metrics using the following:\n')
    self.stdout.write('Slugs: {0}\n'.format(u', '.join(slugs)))
    self.stdout.write('Days: {0}\n'.format(days))
    self.stdout.write('Randomize: {0}\n'.format(randomize))
    self.stdout.write('Cap: {0}\n'.format(cap))
    for slug in slugs:
        generate_test_metrics(slug, num=days, randomize=randomize, cap=cap)