mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Removed implicit default store_true/false argparse args.
argparse automatically sets the default value for store_true/false arguments to its opposite.
This commit is contained in:
parent
1aa8e8605c
commit
7bbb5161ea
25 changed files with 55 additions and 70 deletions
|
@ -6,7 +6,7 @@ class Command(BaseCommand):
|
|||
|
||||
def add_arguments(self, parser):
|
||||
parser.add_argument('args', metavar='app_label', nargs='*', help='Specify the app label(s) to works on.')
|
||||
parser.add_argument('--empty', action='store_true', dest='empty', default=False, help="Do nothing.")
|
||||
parser.add_argument('--empty', action='store_true', dest='empty', help="Do nothing.")
|
||||
|
||||
def handle(self, *app_labels, **options):
|
||||
app_labels = set(app_labels)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue