2011-10-13 18:51:33 +00:00
|
|
|
from django.core.management.base import BaseCommand
|
|
|
|
|
|
|
|
|
2008-07-10 12:12:41 +00:00
|
|
|
class Command(BaseCommand):
|
|
|
|
help = 'Test basic commands'
|
2014-01-20 02:45:21 +00:00
|
|
|
requires_system_checks = False
|
2014-06-06 20:39:33 +00:00
|
|
|
|
|
|
|
def add_arguments(self, parser):
|
|
|
|
parser.add_argument('args', nargs='*')
|
|
|
|
parser.add_argument('--option_a', '-a', default='1')
|
|
|
|
parser.add_argument('--option_b', '-b', default='2')
|
|
|
|
parser.add_argument('--option_c', '-c', default='3')
|
2008-07-10 12:12:41 +00:00
|
|
|
|
|
|
|
def handle(self, *labels, **options):
|
2012-04-28 16:02:01 +00:00
|
|
|
print('EXECUTE:BaseCommand labels=%s, options=%s' % (labels, sorted(options.items())))
|