diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2022-02-21 12:48:35 -0500 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2022-02-21 14:05:24 -0500 |
commit | 8757dfd0fd175698b2bdf61ae49875080b8e1612 (patch) | |
tree | f3afdbc0bfb2902b4ba826e90e67c7cac1641307 /src/doc_reform/spine.d | |
parent | cgi search housekeeping, sync & remove redundancy (diff) |
debug flags, narrow purpose
Diffstat (limited to 'src/doc_reform/spine.d')
-rwxr-xr-x | src/doc_reform/spine.d | 51 |
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"]; |