import tablib
from django.core.management.base import BaseCommand

from painter.models import Card


class Command(BaseCommand):
    def handle(self, *args, **options):
        dataset = tablib.Dataset()

import tablib
from django.core.management.base import BaseCommand

from painter.models import Card


class Command(BaseCommand):
    help = ('Clears the database of cards, then fills it with the contents of one or' +
            ' more specified CSV files.')

    def add_arguments(self, parser):
        parser.add_argument(
            'filenames',
            nargs='+',
            type=str,
            help='One or more CSV file names. The extension is optional.',
        )

    def handle(self, *args, **options):
        dataset = tablib.Dataset()
        for filename in options['filenames']:
            print(filename)

Add help text and a 'filenames' argument.
Add help text and a 'filenames' argument.

* Make it print the filenames it's receiving for the sake of
  good testing output.
