From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] support/scripts/graph-depends: add --quiet option
Date: Sun, 1 Apr 2018 22:24:29 +0200 [thread overview]
Message-ID: <20180401202429.GP2613@scaer> (raw)
In-Reply-To: <20180401191449.802-2-peter@korsgaard.com>
Peter, All,
On 2018-04-01 21:14 +0200, Peter Korsgaard spake thusly:
> This will be useful for the upcoming recursive show-depends and
> show-rdepends features.
>
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Regards,
Yann E. MORIN.
> ---
> 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
>
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2018-04-01 20:24 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 ` [Buildroot] [PATCH 2/2] support/scripts/graph-depends: add --quiet option Peter Korsgaard
2018-04-01 20:07 ` Thomas Petazzoni
2018-04-01 20:21 ` Peter Korsgaard
2018-04-01 20:24 ` Yann E. MORIN [this message]
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=20180401202429.GP2613@scaer \
--to=yann.morin.1998@free.fr \
--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