Django

Code

Show
Ignore:
Timestamp:
10/02/08 07:57:13 (3 months ago)
Author:
russellm
Message:

Promoted --verbosity to be a top level option for all management commands. Also added -v as a consistent short form of --verbosity. This is mostly to save Malcolm's poor arthritic fingers.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/management/base.py

    r9082 r9110  
    122122    # Metadata about this command. 
    123123    option_list = ( 
     124        make_option('-v', '--verbosity', action='store', dest='verbosity', default='1', 
     125            type='choice', choices=['0', '1', '2'], 
     126            help='Verbosity level; 0=minimal output, 1=normal output, 2=all output'), 
    124127        make_option('--settings', 
    125128            help='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.'), 
     
    210213                translation.activate('en-us') 
    211214            except ImportError, e: 
    212                 # If settings should be available, but aren't,  
     215                # If settings should be available, but aren't, 
    213216                # raise the error and quit. 
    214217                sys.stderr.write(self.style.ERROR(str('Error: %s\n' % e)))