mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Converted remaining management commands to argparse
This commit is contained in:
parent
4b4524291a
commit
f17b24e407
45 changed files with 496 additions and 569 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue