All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] support/scripts/graph-depends: add --quiet option
@ 2018-04-01 20:25 Peter Korsgaard
  0 siblings, 0 replies; only message in thread
From: Peter Korsgaard @ 2018-04-01 20:25 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=dcfcb777f480dc9ee4ff6503c338d792806d7bab
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

This will be useful for the upcoming recursive show-depends and
show-rdepends features.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 support/scripts/graph-depends | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/support/scripts/graph-depends b/support/scripts/graph-depends
index 17bfaa0cf5..4ec0e46f7b 100755
--- a/support/scripts/graph-depends
+++ b/support/scripts/graph-depends
@@ -312,6 +312,8 @@ def parse_args():
                         help="Draw direct dependencies (the default)")
     parser.add_argument("--reverse", dest="direct", action='store_false',
                         help="Draw reverse dependencies")
+    parser.add_argument("--quiet", '-q', dest="quiet", action='store_true',
+                        help="Quiet")
     return parser.parse_args()
 
 
@@ -321,7 +323,7 @@ def main():
     check_only = args.check_only
 
     logging.basicConfig(stream=sys.stderr, format='%(message)s',
-                        level=logging.INFO)
+                        level=logging.WARNING if args.quiet else logging.INFO)
 
     if args.outfile is None:
         outfile = sys.stdout

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-04-01 20:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-01 20:25 [Buildroot] [git commit] support/scripts/graph-depends: add --quiet option Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.