aboutsummaryrefslogtreecommitdiff
path: root/docs/refman/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/refman/main.py')
-rw-r--r--docs/refman/main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/refman/main.py b/docs/refman/main.py
index cb040ce..913a0f3 100644
--- a/docs/refman/main.py
+++ b/docs/refman/main.py
@@ -37,6 +37,7 @@ def main() -> int:
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('--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.force_color:
@@ -52,7 +53,7 @@ def main() -> int:
generators: T.Dict[str, T.Callable[[], GeneratorBase]] = {
'print': lambda: GeneratorPrint(refMan),
'pickle': lambda: GeneratorPickle(refMan, args.out),
- 'md': lambda: GeneratorMD(refMan, args.out, args.sitemap, args.link_defs),
+ 'md': lambda: GeneratorMD(refMan, args.out, args.sitemap, args.link_defs, not args.no_modules),
}
generator = generators[args.generator]()