﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
15359	django-admin.py: -h option usage inconsistent with help output	teubank	nobody	"The help text for django-admin.py shows `-h` as a valid option, but using `-h` produces an error message.  (This discrepancy is admittedly a very minor, but unnecessary, bug.)

To reproduce: 
{{{
$ django-admin -h 
Unknown command: '-h'
Type 'django-admin help' for usage.
$ django-admin help
...
  -h, --help            show this help message and exit
...
}}}

The attached patches for releases 1.1.X and 1.2.X modify `django/trunk/django/core/management/__init__.py` to accept `-h` as a valid option.

{{{
-        elif self.argv[1:] == ['--help']:
+        elif self.argv[1:] == ['--help'] or self.argv[1:] == ['-h']:
}}}


Note: Since the definition for the `help` option is buried in optparse.py, modifying `django/core/management/__init__.py` to accept `-h` seems to be preferable to changing the `help` option definition to reflect current usage."		closed	Core (Management commands)	1.2		fixed			Ready for checkin	1	0	0	0	0	0
