mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Converted remaining management commands to argparse
This commit is contained in:
@@ -1,13 +1,10 @@
|
||||
from optparse import make_option
|
||||
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
option_list = BaseCommand.option_list + (
|
||||
make_option("--list", action="store_true", dest="list",
|
||||
help="Print all options"),
|
||||
)
|
||||
def add_arguments(self, parser):
|
||||
parser.add_argument("--list", action="store_true", dest="list",
|
||||
help="Print all options")
|
||||
|
||||
def handle(self, *args, **options):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user