diff options
author | Stone Tickle <lattis@mochiro.moe> | 2022-01-31 07:20:46 -0600 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2022-01-31 18:40:40 +0100 |
commit | f5ffb0a1e97203d8a488dc357676f9e6212b5f82 (patch) | |
tree | e01fb47d6ba92d53c50422e3a9c36e97e6c98786 | |
parent | bfb12222c3f64c4dac45fa526a355fffa74dbecd (diff) | |
download | meson-f5ffb0a1e97203d8a488dc357676f9e6212b5f82.zip meson-f5ffb0a1e97203d8a488dc357676f9e6212b5f82.tar.gz meson-f5ffb0a1e97203d8a488dc357676f9e6212b5f82.tar.bz2 |
add --quiet option to genrefman
-rw-r--r-- | docs/refman/main.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/refman/main.py b/docs/refman/main.py index bf674d4..5727c20 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 |