mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 21:56:31 +00:00
support/scripts/graph-depends: add --quiet option
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>
This commit is contained in:
parent
3543d17441
commit
dcfcb777f4
@ -312,6 +312,8 @@ def parse_args():
|
|||||||
help="Draw direct dependencies (the default)")
|
help="Draw direct dependencies (the default)")
|
||||||
parser.add_argument("--reverse", dest="direct", action='store_false',
|
parser.add_argument("--reverse", dest="direct", action='store_false',
|
||||||
help="Draw reverse dependencies")
|
help="Draw reverse dependencies")
|
||||||
|
parser.add_argument("--quiet", '-q', dest="quiet", action='store_true',
|
||||||
|
help="Quiet")
|
||||||
return parser.parse_args()
|
return parser.parse_args()
|
||||||
|
|
||||||
|
|
||||||
@ -321,7 +323,7 @@ def main():
|
|||||||
check_only = args.check_only
|
check_only = args.check_only
|
||||||
|
|
||||||
logging.basicConfig(stream=sys.stderr, format='%(message)s',
|
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:
|
if args.outfile is None:
|
||||||
outfile = sys.stdout
|
outfile = sys.stdout
|
||||||
|
Loading…
x
Reference in New Issue
Block a user