Skip to content

Commit f5ffb0a

Browse files
annacrombiemensinda
authored andcommitted
add --quiet option to genrefman
1 parent bfb1222 commit f5ffb0a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/refman/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,14 @@ def main() -> int:
4040
parser.add_argument('-i', '--input', type=Path, default=meson_root / 'docs' / 'yaml', help='Input path for the selected loader')
4141
parser.add_argument('--link-defs', type=Path, help='Output file for the MD generator link definition file')
4242
parser.add_argument('--depfile', type=Path, default=None, help='Set to generate a depfile')
43+
parser.add_argument('-q', '--quiet', action='store_true', help='Suppress verbose output')
4344
parser.add_argument('--force-color', action='store_true', help='Force enable colors')
4445
parser.add_argument('--no-modules', action='store_true', help='Disable building modules')
4546
args = parser.parse_args()
4647

48+
if args.quiet:
49+
mlog.set_quiet()
50+
4751
if args.force_color:
4852
mlog.colorize_console = lambda: True
4953

0 commit comments

Comments
 (0)