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 Tim Graham, 10 years ago

Easy pickings: set
Triage Stage: UnreviewedAccepted
Type: UncategorizedBug

comment:2 by Claude Paroz, 10 years ago

This is an 1.7-only issue, as in master, the argparse version of the command does show required arguments.

comment:3 by Claude Paroz <claude@…>, 10 years ago

Resolution: fixed
Status: newclosed

In 31309d4722aa5e08d10733f8cf36d3184799044b:

[1.7.x] Fixed #23478 -- Complemented sqlmigrate command help

Note: See TracTickets for help on using tickets.
Back to Top