]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Make sure --verbose trumps --quiet
authorŁukasz Langa <lukasz@langa.pl>
Mon, 4 Jun 2018 19:36:35 +0000 (12:36 -0700)
committerŁukasz Langa <lukasz@langa.pl>
Mon, 4 Jun 2018 22:53:37 +0000 (15:53 -0700)
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

index 36e49b026a53492ba635621353c2e37ffa2b9520..c8c381c2d30ff3fba658299c49de961542490d68 100644 (file)
--- 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)