mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-14 01:21:14 -06:00
Add --no-progress-bar option to commands
This commit is contained in:
@@ -8,8 +8,16 @@ class Command(BaseCommand):
|
||||
This command checks your document archive for issues.
|
||||
""".replace(" ", "")
|
||||
|
||||
def add_arguments(self, parser):
|
||||
parser.add_argument(
|
||||
"--no-progress-bar",
|
||||
default=False,
|
||||
action="store_true",
|
||||
help="If set, the progress bar will not be shown"
|
||||
)
|
||||
|
||||
def handle(self, *args, **options):
|
||||
|
||||
messages = check_sanity(progress=True)
|
||||
messages = check_sanity(progress=not options['no_progress_bar'])
|
||||
|
||||
messages.log_messages()
|
||||
|
||||
Reference in New Issue
Block a user