#9158: django-admin.py print help to stderr
---------------------------------------------------+------------------------
 Reporter:  Petr Marhoun <[EMAIL PROTECTED]>  |       Owner:  nobody    
   Status:  new                                    |   Milestone:            
Component:  django-admin.py                        |     Version:  1.0       
 Keywords:                                         |       Stage:  Unreviewed
Has_patch:  1                                      |  
---------------------------------------------------+------------------------
 Command django-admin.py help print this text to stdout:

 {{{
 Usage: django-admin.py subcommand [options] [args]

 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
 }}}

 and this text to stderr:

 {{{
 Type 'django-admin.py help <subcommand>' for help on a specific
 subcommand.

 Available subcommands:
   cleanup
   compilemessages
   createcachetable
   dbshell
   diffsettings
   dumpdata
   flush
   inspectdb
   loaddata
   makemessages
   reset
   runfcgi
   runserver
   shell
   sql
   sqlall
   sqlclear
   sqlcustom
   sqlflush
   sqlindexes
   sqlinitialdata
   sqlreset
   sqlsequencereset
   startapp
   startproject
   syncdb
   test
   testserver
   validate
 }}}

 It is quite illogical. And it is not possible to do something as it:

 {{{
 django-admin.py help | grep sql
 }}}

 (It is also useful if there are some custom commands with common prefix
 and I want their list.)

 Attached patch replaces all four occurrences in
 django.core.management.init from stderr to stdout. But the first and the
 second are real errors, patch with only the third and the fourth change
 could be better.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9158>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to