From 3cceed4af466d11e0735246bbd09f8451f6f9383 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 14 Apr 2020 15:48:25 -0400 Subject: cgi search form: path; theme; download remote src - config output path - dark theme - allow downloads flag for download of remote file cgi.d --- org/spine.org | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'org/spine.org') diff --git a/org/spine.org b/org/spine.org index f6dd0b2..bd8437a 100644 --- a/org/spine.org +++ b/org/spine.org @@ -429,7 +429,8 @@ string[string] settings = [ #+BEGIN_SRC d 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"], @@ -507,6 +508,9 @@ if (helpInfo.helpWanted) { #+BEGIN_SRC d 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"]; } -- cgit v1.2.3