From 83413c53d20859eaa2f1ffe73d119c9be6f74787 Mon Sep 17 00:00:00 2001 From: Bruno Ribeiro da Silva Date: Fri, 25 Apr 2014 13:27:48 -0300 Subject: [PATCH] Fixed #22511 -- Added args to migrations management commands. --- django/core/management/commands/makemigrations.py | 1 + django/core/management/commands/migrate.py | 1 + django/core/management/commands/squashmigrations.py | 1 + 3 files changed, 3 insertions(+) diff --git a/django/core/management/commands/makemigrations.py b/django/core/management/commands/makemigrations.py index bdf0b2fe773..1a4f96cf9c9 100644 --- a/django/core/management/commands/makemigrations.py +++ b/django/core/management/commands/makemigrations.py @@ -27,6 +27,7 @@ class Command(BaseCommand): help = "Creates new migration(s) for apps." usage_str = "Usage: ./manage.py makemigrations [--dry-run] [app [app ...]]" + args = "[app_label [app_label ...]]" def handle(self, *app_labels, **options): diff --git a/django/core/management/commands/migrate.py b/django/core/management/commands/migrate.py index 6f152ffec6c..923211f09af 100644 --- a/django/core/management/commands/migrate.py +++ b/django/core/management/commands/migrate.py @@ -35,6 +35,7 @@ class Command(BaseCommand): ) help = "Updates database schema. Manages both apps with migrations and those without." + args = "[app_label] [migration_name]" def handle(self, *args, **options): diff --git a/django/core/management/commands/squashmigrations.py b/django/core/management/commands/squashmigrations.py index e099c663cdb..3101ca0b141 100644 --- a/django/core/management/commands/squashmigrations.py +++ b/django/core/management/commands/squashmigrations.py @@ -20,6 +20,7 @@ class Command(BaseCommand): help = "Squashes an existing set of migrations (from first until specified) into a single new one." usage_str = "Usage: ./manage.py squashmigrations app migration_name" + args = "app_label migration_name" def handle(self, app_label=None, migration_name=None, **options):