Opened 10 years ago
Closed 10 years ago
#23478 closed Bug (fixed)
Wrong help for sqlmigrate management command
Reported by: | Dmitri Bogomolov | Owned by: | nobody |
---|---|---|---|
Component: | Core (Management commands) | Version: | 1.7 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
sqlmigrate
probably should have the same help message as migrate
. Compare:
# python manage.py help migrate Usage: manage.py migrate [options] [app_label] [migration_name] ...
# python manage.py help sqlmigrate Usage: manage.py sqlmigrate [options] ...
Otherwise, it produces obscure error:
# python manage.py sqlmigrate --database=database1 CommandError: Wrong number of arguments (expecting 'sqlmigrate app_label migrationname')
Change History (3)
comment:1 by , 10 years ago
Easy pickings: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
Type: | Uncategorized → Bug |
comment:2 by , 10 years ago
comment:3 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This is an 1.7-only issue, as in master, the
argparse
version of the command does show required arguments.