Django

Code

Ticket #7997 (closed: fixed)

Opened 4 months ago

Last modified 4 months ago

./manage.py <command> --help shows manage.py help message

Reported by: trevor Assigned to: nobody
Milestone: Component: Core framework
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Steps to reproduce:

./manage.py runserver -h

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.

Attachments

Change History

07/27/08 20:08:22 changed by anonymous

  • status changed from new to closed.
  • resolution set to duplicate.

Closing and marking as a duplicate of of #6017, just like it was done with #6817.

07/27/08 22:32:07 changed by trevor

  • status changed from closed to reopened.
  • resolution deleted.

As noted in http://code.djangoproject.com/ticket/6017#comment:6, this is a separate issue. #6817 was reported and closed long before [7888] was committed. As of [8128], this bug is still present.

08/08/08 08:40:12 changed by russellm

  • status changed from reopened to closed.
  • resolution set to fixed.

(In [8228]) Fixed #8120, #7997 -- Cleaned up the help messages displayed by django-admin so that the lax options aren't repeated, and the lax options are displayed when no subcommand is provided. Thanks to Scott Moonen <smoonen@andstuff.org> and trevor for the respective reports.


Add/Change #7997 (./manage.py <command> --help shows manage.py help message)




Change Properties
Action