diff options
Diffstat (limited to 'django/contrib/staticfiles/management/commands/findstatic.py')
| -rw-r--r-- | django/contrib/staticfiles/management/commands/findstatic.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/django/contrib/staticfiles/management/commands/findstatic.py b/django/contrib/staticfiles/management/commands/findstatic.py index 367242fd21..dcb198b221 100644 --- a/django/contrib/staticfiles/management/commands/findstatic.py +++ b/django/contrib/staticfiles/management/commands/findstatic.py @@ -13,18 +13,21 @@ class Command(LabelCommand): def add_arguments(self, parser): super(Command, self).add_arguments(parser) - parser.add_argument('--first', action='store_false', dest='all', + parser.add_argument( + '--first', action='store_false', dest='all', default=True, - help="Only return the first match for each static file.") + help="Only return the first match for each static file.", + ) def handle_label(self, path, **options): verbosity = options['verbosity'] result = finders.find(path, all=options['all']) path = force_text(path) if verbosity >= 2: - searched_locations = ("\nLooking in the following locations:\n %s" % - "\n ".join(force_text(location) - for location in finders.searched_locations)) + searched_locations = ( + "\nLooking in the following locations:\n %s" % + "\n ".join(force_text(location) for location in finders.searched_locations) + ) else: searched_locations = '' if result: |
