django-admin.py should display help output when no arguments are given
|Reported by:||Jeff Forcier||Owned by:||nobody|
|Component:||Core (Management commands)||Version:||master|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Ticket #378 mentions having
django-admin.py honor Unix traditions -- and yet if you invoke it with no arguments, you get a profoundly unfriendly and non-Unix-like message:
$ django-admin.py Type 'django-admin.py help' for usage.
Compare to, say,
$ apt-get apt 0.7.9ubuntu17.2 for i386 compiled on Apr 17 2009 16:29:24 Usage: apt-get [options] command apt-get [options] install|remove pkg1 [pkg2 ...] apt-get [options] source pkg1 [pkg2 ...] [...]
$ git usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [-p|--paginate|--no-pager] [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE] [--help] COMMAND [ARGS] [...]
I'm sure I didn't need to give examples, but I felt like being thorough :)
The code related to this has not changed significantly since the 1.0.X branch -- i.e. the (tiny) patch applies cleanly to the latest 1.0.X branch checkout, as well as the latest SVN.
I'm not seeing any tests that apply to django-admin.py at all, so not including one -- please point me to the right spot if I've missed something.
Change History (7)
comment:1 Changed 8 years ago by
|Summary:||`django-admin.py` should display `--help` output when no arguments are given → django-admin.py should display help output when no arguments are given|
comment:5 Changed 8 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Accepted → Ready for checkin|