Steps to reproduce:
Expected output:
Usage: ./manage.py runserver [options] [optional port number, or ipaddr:port]
Starts a lightweight Web server for development.
Options:
--settings=SETTINGS The Python path to a settings module, e.g.
"myproject.settings.main". If this isn't provided, the
DJANGO_SETTINGS_MODULE environment variable will be
used.
--pythonpath=PYTHONPATH
A directory to add to the Python path, e.g.
"/home/djangoprojects/myproject".
--traceback Print traceback on exception
--noreload Tells Django to NOT use the auto-reloader.
--adminmedia=ADMIN_MEDIA_PATH
Specifies the directory from which to serve admin
media.
--version show program's version number and exit
-h, --help show this help message and exit
Actual output:
Usage: manage.py [options]
Options:
--settings=SETTINGS The Python path to a settings module, e.g.
"myproject.settings.main". If this isn't provided, the
DJANGO_SETTINGS_MODULE environment variable will be
used.
--pythonpath=PYTHONPATH
A directory to add to the Python path, e.g.
"/home/djangoprojects/myproject".
--traceback Print traceback on exception
--version show program's version number and exit
-h, --help show this help message and exit
Usage: ./manage.py runserver [options] [optional port number, or ipaddr:port]
Starts a lightweight Web server for development.
Options:
--settings=SETTINGS The Python path to a settings module, e.g.
"myproject.settings.main". If this isn't provided, the
DJANGO_SETTINGS_MODULE environment variable will be
used.
--pythonpath=PYTHONPATH
A directory to add to the Python path, e.g.
"/home/djangoprojects/myproject".
--traceback Print traceback on exception
--noreload Tells Django to NOT use the auto-reloader.
--adminmedia=ADMIN_MEDIA_PATH
Specifies the directory from which to serve admin
media.
--version show program's version number and exit
-h, --help show this help message and exit
The problem seems to originate in LaxOptionParser.