Opened 7 years ago

Closed 7 years ago

#16445 closed New feature (duplicate)

Grouping commands by app in ./ help

Reported by: mariarchi Owned by: nobody
Component: Core (Management commands) Version: master
Severity: Normal Keywords:
Cc: mariarchi Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


See django-dev for the example.

Attachments (1)

better_help_patch.patch (1.7 KB) - added by mariarchi 7 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 7 years ago by Aymeric Augustin

Patch needs improvement: set

The idea looks good in theory. I'd like to test it on practice to see how good it looks, but the patch doesn't work.

trunk % PYTHONPATH=. django/bin/ --help
Usage: subcommand [options] [args]

  -v VERBOSITY, --verbosity=VERBOSITY
                        Verbosity level; 0=minimal output, 1=normal output,
                        2=all output
  --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
                        A directory to add to the Python path, e.g.
  --traceback           Print traceback on exception
  --version             show program's version number and exit
  -h, --help            show this help message and exit
Traceback (most recent call last):
  File "django/bin/", line 5, in <module>
  File "/Users/myk/Desktop/django-trunk/django/core/management/", line 445, in execute_from_command_line
  File "/Users/myk/Desktop/django-trunk/django/core/management/", line 389, in execute
    sys.stdout.write(self.main_help_text() + '\n')
  File "/Users/myk/Desktop/django-trunk/django/core/management/", line 245, in main_help_text
    if isinstance(app, ProjectCommand):
NameError: global name 'ProjectCommand' is not defined

Changed 7 years ago by mariarchi

Attachment: better_help_patch.patch added

comment:2 Changed 7 years ago by mariarchi

Ooops sorry forgot an import. That was really fast reply.

See!topic/django-developers/zrkBOXb8mJk for the detailed example.

comment:3 Changed 7 years ago by mariarchi

Cc: mariarchi added
Patch needs improvement: unset

comment:4 Changed 7 years ago by Russell Keith-Magee

Resolution: duplicate
Status: newclosed

Duplicate of #11745.

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