From 25c30732826b75420bab6287bfe7cbbc9f75e3b5 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 6 Jun 2017 17:54:49 -0400 Subject: getopt, fixes, & naming command line options related --- src/sdp/output/source_sisupod.d | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/sdp/output/source_sisupod.d') diff --git a/src/sdp/output/source_sisupod.d b/src/sdp/output/source_sisupod.d index 6c326ac..bb8ea80 100644 --- a/src/sdp/output/source_sisupod.d +++ b/src/sdp/output/source_sisupod.d @@ -27,7 +27,7 @@ template SiSUpod() { assert (doc_matters.source_filename.match(rgx.src_fn)); try { /+ create directory structure +/ - if (doc_matters.opt_action_bool["source"]) { + if (doc_matters.opt_action["source"]) { if (!exists(pth_sisupod_filesystem.text_root(doc_matters.source_filename))) { pth_sisupod_filesystem.text_root(doc_matters.source_filename).mkdirRecurse; } @@ -68,10 +68,10 @@ template SiSUpod() { auto fn_out = pth_sisupod.image_root(doc_matters.source_filename).to!string ~ "/" ~ image; auto fn_out_filesystem = pth_sisupod_filesystem.image_root(doc_matters.source_filename).to!string ~ "/" ~ image; if (exists(fn_src)) { - if (doc_matters.opt_action_bool["source"]) { + if (doc_matters.opt_action["source"]) { fn_src.copy(fn_out_filesystem); } - if (doc_matters.opt_action_bool["sisupod"]) { + if (doc_matters.opt_action["sisupod"]) { auto zip_arc_member_file = new ArchiveMember(); zip_arc_member_file.name = fn_out; auto zip_data = new OutBuffer(); @@ -88,10 +88,10 @@ template SiSUpod() { auto fn_out = pth_sisupod.conf_root(doc_matters.source_filename).to!string ~ "/" ~ "sisu_document_make"; auto fn_out_filesystem = pth_sisupod_filesystem.conf_root(doc_matters.source_filename).to!string ~ "/" ~ "sisu_document_make"; if (exists(fn_src)) { - if (doc_matters.opt_action_bool["source"]) { + if (doc_matters.opt_action["source"]) { fn_src.copy(fn_out_filesystem); } - if (doc_matters.opt_action_bool["sisupod"]) { + if (doc_matters.opt_action["sisupod"]) { auto zip_arc_member_file = new ArchiveMember(); zip_arc_member_file.name = fn_out; auto zip_data = new OutBuffer(); @@ -107,10 +107,10 @@ template SiSUpod() { auto fn_out = pth_sisupod.fn_doc(doc_matters.source_filename).to!string; auto fn_out_filesystem = pth_sisupod_filesystem.fn_doc(doc_matters.source_filename).to!string; if (exists(fn_src)) { - if (doc_matters.opt_action_bool["source"]) { + if (doc_matters.opt_action["source"]) { fn_src.copy(fn_out_filesystem); } - if (doc_matters.opt_action_bool["sisupod"]) { + if (doc_matters.opt_action["sisupod"]) { auto zip_arc_member_file = new ArchiveMember(); zip_arc_member_file.name = fn_out; auto zip_data = new OutBuffer(); @@ -142,10 +142,10 @@ template SiSUpod() { insert_file, ).to!string; if (exists(fn_src)) { - if (doc_matters.opt_action_bool["source"]) { + if (doc_matters.opt_action["source"]) { fn_src.copy(fn_out_filesystem); } - if (doc_matters.opt_action_bool["sisupod"]) { + if (doc_matters.opt_action["sisupod"]) { auto zip_arc_member_file = new ArchiveMember(); zip_arc_member_file.name = insert_file; auto zip_data = new OutBuffer(); -- cgit v1.2.3