From e5452a6b676c161d01ae0ac6cbb5a7cc4c395745 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Langa?= Date: Mon, 4 Jun 2018 12:36:35 -0700 Subject: [PATCH 1/1] 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. --- black.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/black.py b/black.py index 36e49b0..c8c381c 100644 --- a/black.py +++ b/black.py @@ -302,7 +302,8 @@ def main( else: err(f"invalid path: {s}") if len(sources) == 0: - out("No paths given. Nothing to do 😴") + 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) -- 2.39.5