mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Converted remaining management commands to argparse
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
from optparse import make_option
|
||||
|
||||
from django.core.management.commands.startproject import Command as BaseCommand
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
option_list = BaseCommand.option_list + (
|
||||
make_option('--extra',
|
||||
action='store', dest='extra',
|
||||
help='An arbitrary extra value passed to the context'),
|
||||
)
|
||||
def add_arguments(self, parser):
|
||||
super(Command, self).add_arguments(parser)
|
||||
parser.add_argument('--extra',
|
||||
help='An arbitrary extra value passed to the context')
|
||||
|
||||
Reference in New Issue
Block a user