summaryrefslogtreecommitdiff
path: root/django/core/management/templates.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-03-28 18:33:29 -0400
committerTim Graham <timograham@gmail.com>2016-04-08 09:51:06 -0400
commitdf8d8d4292684d6ffa7474f1e201aed486f02b53 (patch)
treec661bf9b33de5288afe4f63347a2a9c768ef98eb /django/core/management/templates.py
parent2956e2f5e3f63d279f5dae2a995265364d3e6db1 (diff)
Fixed E128 flake8 warnings in django/.
Diffstat (limited to 'django/core/management/templates.py')
-rw-r--r--django/core/management/templates.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/django/core/management/templates.py b/django/core/management/templates.py
index 1cd06d101a..df522e809c 100644
--- a/django/core/management/templates.py
+++ b/django/core/management/templates.py
@@ -51,18 +51,20 @@ class TemplateCommand(BaseCommand):
def add_arguments(self, parser):
parser.add_argument('name', help='Name of the application or project.')
parser.add_argument('directory', nargs='?', help='Optional destination directory')
- parser.add_argument('--template',
- help='The path or URL to load the template from.')
- parser.add_argument('--extension', '-e', dest='extensions',
+ parser.add_argument('--template', help='The path or URL to load the template from.')
+ parser.add_argument(
+ '--extension', '-e', dest='extensions',
action='append', default=['py'],
help='The file extension(s) to render (default: "py"). '
'Separate multiple extensions with commas, or use '
- '-e multiple times.')
- parser.add_argument('--name', '-n', dest='files',
+ '-e multiple times.'
+ )
+ parser.add_argument(
+ '--name', '-n', dest='files',
action='append', default=[],
- help='The file name(s) to render. '
- 'Separate multiple extensions with commas, or use '
- '-n multiple times.')
+ help='The file name(s) to render. Separate multiple extensions '
+ 'with commas, or use -n multiple times.'
+ )
def handle(self, app_or_project, name, target=None, **options):
self.app_or_project = app_or_project