Commit e5452a6b authored by Łukasz Langa's avatar Łukasz Langa
Browse files

Make sure --verbose trumps --quiet

This is so that users can have a --quiet alias in their environment and only
occasionally add --verbose if they are surprised by the result.
parent 00a30256
Loading
Loading
Loading
Loading
+2 −1
Changes for black.py: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -302,6 +302,7 @@ def main(
        else:
            err(f"invalid path: {s}")
    if len(sources) == 0:
        if verbose or not quiet:
            out("No paths given. Nothing to do 😴")
        ctx.exit(0)
        return
@@ -333,7 +334,7 @@ def main(
            )
        finally:
            shutdown(loop)
        if not quiet:
        if verbose or not quiet:
            out("All done! ✨ 🍰 ✨")
            click.echo(str(report))
    ctx.exit(report.return_code)