From f5ffb0a1e97203d8a488dc357676f9e6212b5f82 Mon Sep 17 00:00:00 2001 From: Stone Tickle Date: Mon, 31 Jan 2022 07:20:46 -0600 Subject: [PATCH] add --quiet option to genrefman --- docs/refman/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/refman/main.py b/docs/refman/main.py index bf674d446..5727c20c5 100644 --- a/docs/refman/main.py +++ b/docs/refman/main.py @@ -40,10 +40,14 @@ def main() -> int: parser.add_argument('-i', '--input', type=Path, default=meson_root / 'docs' / 'yaml', help='Input path for the selected loader') parser.add_argument('--link-defs', type=Path, help='Output file for the MD generator link definition file') parser.add_argument('--depfile', type=Path, default=None, help='Set to generate a depfile') + parser.add_argument('-q', '--quiet', action='store_true', help='Suppress verbose output') parser.add_argument('--force-color', action='store_true', help='Force enable colors') parser.add_argument('--no-modules', action='store_true', help='Disable building modules') args = parser.parse_args() + if args.quiet: + mlog.set_quiet() + if args.force_color: mlog.colorize_console = lambda: True