Skip to content

Commit

Permalink
Added option -q or --quiet to archive, like for extract
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakob Björns committed Oct 22, 2024
1 parent ed46d00 commit 576e350
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions beangulp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,10 @@ def _extract(ctx, src, output, existing, reverse, failfast, quiet):
help='Just print where the files would be moved.')
@click.option('--failfast', '-x', is_flag=True,
help='Stop processing at the first error.')
@click.option('--quiet', '-q', count=True,
help="Suppress all output.")
@click.pass_obj
def _archive(ctx, src, destination, dry_run, overwrite, failfast):
def _archive(ctx, src, destination, dry_run, overwrite, failfast,quiet):
"""Archive documents.
Walk the SRC list of files or directories and move each file
Expand All @@ -146,8 +148,9 @@ def _archive(ctx, src, destination, dry_run, overwrite, failfast):
if destination is None:
import __main__
destination = os.path.dirname(os.path.abspath(__main__.__file__))

log = utils.logger()

verbosity = -quiet
log = utils.logger(verbosity, err=True)
errors = exceptions.ExceptionsTrap(log)
renames = []

Expand Down

0 comments on commit 576e350

Please sign in to comment.