mirror of
https://github.com/django/django.git
synced 2025-03-06 07:22:32 +00:00
Clarified BaseCommand --traceback behavior.
This commit is contained in:
parent
57e40551e4
commit
cc25bfebd5
@ -320,7 +320,7 @@ class BaseCommand(object):
|
|||||||
parser.add_option('--pythonpath',
|
parser.add_option('--pythonpath',
|
||||||
help='A directory to add to the Python path, e.g. "/home/djangoprojects/myproject".'),
|
help='A directory to add to the Python path, e.g. "/home/djangoprojects/myproject".'),
|
||||||
parser.add_option('--traceback', action='store_true',
|
parser.add_option('--traceback', action='store_true',
|
||||||
help='Raise on exception')
|
help='Raise on CommandError exceptions')
|
||||||
parser.add_option('--no-color', action='store_true', dest='no_color', default=False,
|
parser.add_option('--no-color', action='store_true', dest='no_color', default=False,
|
||||||
help="Don't colorize the command output.")
|
help="Don't colorize the command output.")
|
||||||
for opt in self.option_list:
|
for opt in self.option_list:
|
||||||
@ -342,7 +342,7 @@ class BaseCommand(object):
|
|||||||
parser.add_argument('--pythonpath',
|
parser.add_argument('--pythonpath',
|
||||||
help='A directory to add to the Python path, e.g. "/home/djangoprojects/myproject".')
|
help='A directory to add to the Python path, e.g. "/home/djangoprojects/myproject".')
|
||||||
parser.add_argument('--traceback', action='store_true',
|
parser.add_argument('--traceback', action='store_true',
|
||||||
help='Raise on exception')
|
help='Raise on CommandError exceptions')
|
||||||
parser.add_argument('--no-color', action='store_true', dest='no_color', default=False,
|
parser.add_argument('--no-color', action='store_true', dest='no_color', default=False,
|
||||||
help="Don't colorize the command output.")
|
help="Don't colorize the command output.")
|
||||||
if self.args:
|
if self.args:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user