summaryrefslogtreecommitdiff
path: root/tests/bash_completion/management/commands/test_command.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bash_completion/management/commands/test_command.py')
-rw-r--r--tests/bash_completion/management/commands/test_command.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/bash_completion/management/commands/test_command.py b/tests/bash_completion/management/commands/test_command.py
index 0f5750645c..d2adf91e5a 100644
--- a/tests/bash_completion/management/commands/test_command.py
+++ b/tests/bash_completion/management/commands/test_command.py
@@ -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