aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/spine.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc_reform/spine.d')
-rwxr-xr-xsrc/doc_reform/spine.d51
1 files changed, 50 insertions, 1 deletions
diff --git a/src/doc_reform/spine.d b/src/doc_reform/spine.d
index aacdaab..97cc6b0 100755
--- a/src/doc_reform/spine.d
+++ b/src/doc_reform/spine.d
@@ -116,6 +116,13 @@ string program_name = "spine";
"concordance" : false,
"dark" : false,
"debug" : false,
+ "debug-pod" : false,
+ "debug-epub" : false,
+ "debug-harvest" : false,
+ "debug-html" : false,
+ "debug-latex" : false,
+ "debug-manifest" : false,
+ "debug-sqlite" : false,
"digest" : false,
"epub" : false,
"curate" : false,
@@ -207,6 +214,13 @@ string program_name = "spine";
"curate-topics", "extract info on topics from document header metadata", &opts["curate-topics"],
"dark", "alternative dark theme", &opts["dark"],
"debug", "debug", &opts["debug"],
+ "debug-pod", "debug pod", &opts["debug-pod"],
+ "debug-epub", "debug epub", &opts["debug-epub"],
+ "debug-harvest", "debug harvest", &opts["debug-harvest"],
+ "debug-html", "debug html", &opts["debug-html"],
+ "debug-latex", "debug latex", &opts["debug-latex"],
+ "debug-manifest", "debug manifest", &opts["debug-manifest"],
+ "debug-sqlite", "debug sqlite", &opts["debug-sqlite"],
"digest", "hash digest for each object", &opts["digest"],
"epub", "process epub output", &opts["epub"],
"hide-ocn", "object cite numbers", &opts["hide-ocn"],
@@ -301,7 +315,42 @@ string program_name = "spine";
return _is_light;
}
@trusted bool debug_do() {
- return opts["debug"];
+ bool _dbg;
+ if (opts["debug"]
+ ||opts["debug-epub"]
+ ||opts["debug-harvest"]
+ ||opts["debug-html"]
+ ||opts["debug-latex"]
+ ||opts["debug-manifest"]
+ ||opts["debug-sqlite"]
+ ) {
+ _dbg = true;
+ } else { _dbg = false; }
+ return _dbg;
+ }
+ @trusted bool debug_do_pod() {
+ return (opts["debug"] || opts["debug-pod"]) ? true : false;
+ }
+ @trusted bool debug_do_epub() {
+ return (opts["debug"] || opts["debug-epub"]) ? true : false;
+ }
+ @trusted bool debug_do_harvest() {
+ return (opts["debug"] || opts["debug-harvest"]) ? true : false;
+ }
+ @trusted bool debug_do_html() {
+ return (opts["debug"] || opts["debug-html"]) ? true : false;
+ }
+ @trusted bool debug_do_latex() {
+ return (opts["debug"] || opts["debug-latex"]) ? true : false;
+ }
+ @trusted bool debug_do_manifest() {
+ return (opts["debug"] || opts["debug-manifest"]) ? true : false;
+ }
+ @trusted bool debug_do_sqlite() {
+ return (opts["debug"] || opts["debug-sqlite"]) ? true : false;
+ }
+ @trusted bool debug_do_xmls() {
+ return (opts["debug"] || opts["debug-html"] || opts["debug-epub"]) ? true : false;
}
@trusted bool digest() {
return opts["digest"];