aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/spine.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2020-04-14 15:48:25 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2020-05-20 11:27:26 -0400
commit3cceed4af466d11e0735246bbd09f8451f6f9383 (patch)
tree7b38bffe46a1d913faaebdfac4b95466846038ea /src/doc_reform/spine.d
parenttrust more, else minor (diff)
cgi search form: path; theme; download remote src
- config output path - dark theme - allow downloads flag for download of remote file cgi.d
Diffstat (limited to 'src/doc_reform/spine.d')
-rwxr-xr-xsrc/doc_reform/spine.d6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/doc_reform/spine.d b/src/doc_reform/spine.d
index 53a4a5a..6d6d543 100755
--- a/src/doc_reform/spine.d
+++ b/src/doc_reform/spine.d
@@ -181,7 +181,8 @@ string program_name = "spine";
];
auto helpInfo = getopt(args,
std.getopt.config.passThrough,
- "abstraction", "document abstraction ", &opts["abstraction"],
+ "abstraction", "document abstraction", &opts["abstraction"],
+ "allow-downloads", "allow downloads (includes cgi.d from github)", &opts["allow-downloads"],
"assert", "set optional assertions on", &opts["assertions"],
"cgi-search-form-codegen", "generates (pre-compiled) d code for search of specified db", &opts["cgi-search-form-codegen"],
"cgi-sqlite-search-filename", "=[filename]", &settings["cgi-sqlite-search-filename"],
@@ -252,6 +253,9 @@ string program_name = "spine";
}
enum outTask { source_or_pod, sqlite, sqlite_multi, latex, odt, epub, html_scroll, html_seg, html_stuff }
struct OptActions {
+ @trusted bool allow_downloads() {
+ return opts["allow-downloads"];
+ }
@trusted bool assertions() {
return opts["assertions"];
}