aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdp.d')
-rwxr-xr-xsrc/sdp.d22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/sdp.d b/src/sdp.d
index a900b55..ff9128f 100755
--- a/src/sdp.d
+++ b/src/sdp.d
@@ -117,6 +117,7 @@ void main(string[] args) {
"section_bookindex" : true,
"section_blurb" : true,
"backmatter" : true,
+ "skip_output" : false,
];
auto helpInfo = getopt(args,
std.getopt.config.passThrough,
@@ -151,6 +152,7 @@ void main(string[] args) {
"section-bookindex", "--section-bookindex process document bookindex (default)", &opt_action_bool["section_bookindex"],
"section-blurb", "--section-blurb process document blurb (default)", &opt_action_bool["section_blurb"],
"backmatter", "--section-backmatter process document backmatter (default)", &opt_action_bool["backmatter"],
+ "skip_output", "--skip-output", &opt_action_bool["skip_output"],
);
if (helpInfo.helpWanted) {
defaultGetoptPrinter("Some information about the program.", helpInfo.options);
@@ -274,15 +276,17 @@ void main(string[] args) {
);
}
/+ ↓ output hub +/
- output.hub(
- doc_ao_contents,
- document_section_keys_sequenced,
- doc_html_segnames,
- dochead_make,
- dochead_meta,
- fn_src,
- opt_action_bool
- );
+ if (!(opt_action_bool["skip_output"])) {
+ output.hub(
+ doc_ao_contents,
+ document_section_keys_sequenced,
+ doc_html_segnames,
+ dochead_make,
+ dochead_meta,
+ fn_src,
+ opt_action_bool
+ );
+ }
scope(exit) {
debug(checkdoc) {
writefln(