summaryrefslogtreecommitdiff
path: root/tests/user_commands
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-06-06 22:39:33 +0200
committerClaude Paroz <claude@2xlibre.net>2014-06-14 13:43:44 +0200
commitf17b24e407385eb18651bf023a187347aa9c1f75 (patch)
tree1757c5d85629d9cd4b84f60e07aeca5eedd515de /tests/user_commands
parent4b4524291adbc78ab880317124803fc37a2e414a (diff)
Converted remaining management commands to argparse
Diffstat (limited to 'tests/user_commands')
-rw-r--r--tests/user_commands/management/commands/dance.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/user_commands/management/commands/dance.py b/tests/user_commands/management/commands/dance.py
index 7297568f06..0c47401c25 100644
--- a/tests/user_commands/management/commands/dance.py
+++ b/tests/user_commands/management/commands/dance.py
@@ -1,5 +1,3 @@
-from optparse import make_option
-
from django.core.management.base import BaseCommand, CommandError
@@ -8,10 +6,9 @@ class Command(BaseCommand):
args = ''
requires_system_checks = True
- option_list = BaseCommand.option_list + (
- make_option("-s", "--style", default="Rock'n'Roll"),
- make_option("-x", "--example")
- )
+ def add_arguments(self, parser):
+ parser.add_argument("-s", "--style", default="Rock'n'Roll")
+ parser.add_argument("-x", "--example")
def handle(self, *args, **options):
example = options["example"]