From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] support/scripts/graph-depends: add --quiet option
Date: Sun, 1 Apr 2018 21:14:49 +0200 [thread overview]
Message-ID: <20180401191449.802-2-peter@korsgaard.com> (raw)
In-Reply-To: <20180401191449.802-1-peter@korsgaard.com>
This will be useful for the upcoming recursive show-depends and
show-rdepends features.
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
--
2.11.0
next prev parent reply other threads:[~2018-04-01 19:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-01 19:14 [Buildroot] [PATCH 1/2] support/scripts/graph-depends: use the standard python logging module Peter Korsgaard
2018-04-01 19:14 ` Peter Korsgaard [this message]
2018-04-01 20:07 ` [Buildroot] [PATCH 2/2] support/scripts/graph-depends: add --quiet option Thomas Petazzoni
2018-04-01 20:21 ` Peter Korsgaard
2018-04-01 20:24 ` Yann E. MORIN
2018-04-01 20:07 ` [Buildroot] [PATCH 1/2] support/scripts/graph-depends: use the standard python logging module Thomas Petazzoni
2018-04-01 20:21 ` Peter Korsgaard
2018-04-01 20:24 ` Yann E. MORIN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180401191449.802-2-peter@korsgaard.com \
--to=peter@korsgaard.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox