diff options
author | Ralph Amissah <ralph@amissah.com> | 2018-07-12 11:35:22 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2019-04-10 15:14:15 -0400 |
commit | b3e491f2005e278b4533b3d935e96722b3facaa7 (patch) | |
tree | 07568b91f51c2e4e03a6896601525216714a1489 /org/sdp.org | |
parent | object_number, replaces object_cite_number in code (diff) |
doc abstraction run only when processing flags require
Diffstat (limited to 'org/sdp.org')
-rw-r--r-- | org/sdp.org | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/org/sdp.org b/org/sdp.org index 15fd5d4..ac80370 100644 --- a/org/sdp.org +++ b/org/sdp.org @@ -229,6 +229,7 @@ look into using getopt #+NAME: sdp_args #+BEGIN_SRC d bool[string] opts = [ + "abstraction" : false, "assertions" : false, "concordance" : false, "debug" : false, @@ -272,6 +273,7 @@ string[string] settings = [ ]; auto helpInfo = getopt(args, std.getopt.config.passThrough, + "abstraction", "--abstraction document abstraction ", &opts["abstraction"], "assert", "--assert set optional assertions on", &opts["assertions"], "concordance", "--concordance file for document", &opts["concordance"], "debug", "--debug", &opts["debug"], @@ -435,6 +437,32 @@ struct OptActions { auto output_dir_set() { return settings["output-dir"]; } + auto abstraction() { + bool _is; + if ( + opts["abstraction"] + || concordance + || docbook + || epub + || html + || html_seg + || html_scroll + || manifest + || odt + || pdf + || postgresql + || qrcode + || sisupod + || source + || sqlite_discrete + || sqlite_update + || text + || xhtml + ) { + _is = true; + } else { _is = false; } + return _is; + } } auto _opt_action = OptActions(); #+END_SRC @@ -457,6 +485,7 @@ foreach(arg; args[1..$]) { } else if ( !(arg.match(rgx.src_pth_sst_or_ssm)) && _manifest_start.pod_manifest_file_with_path + && _opt_action.abstraction ) { string contents_location_raw_; string contents_location_; |