diff options
Diffstat (limited to 'src/sdp')
| -rwxr-xr-x | src/sdp/sdp.d | 29 | 
1 files changed, 29 insertions, 0 deletions
| diff --git a/src/sdp/sdp.d b/src/sdp/sdp.d index 0093f74..8b8703f 100755 --- a/src/sdp/sdp.d +++ b/src/sdp/sdp.d @@ -57,6 +57,7 @@ void main(string[] args) {      }    }    bool[string] opts = [ +    "abstraction"        : false,      "assertions"         : false,      "concordance"        : false,      "debug"              : false, @@ -100,6 +101,7 @@ void main(string[] args) {    ];    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"], @@ -257,6 +259,32 @@ void main(string[] args) {      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();    auto _env = [ @@ -273,6 +301,7 @@ void main(string[] args) {      } 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_; | 
