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"
|
2020-05-13 22:00:41 +00:00
|
|
|
requires_system_checks = []
|
2014-06-06 20:39:33 +00:00
|
|
|
|
|
|
|
def add_arguments(self, parser):
|
|
|
|
parser.add_argument("args", nargs="*")
|
2014-06-14 14:20:42 +00:00
|
|
|
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()))
|
2022-02-03 19:24:19 +00:00
|
|
|
)
|