diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2019-10-22 19:56:58 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2019-11-19 16:55:29 -0500 |
commit | 3668f9ec6b4dd096f2109557ca523b3d774ad6d1 (patch) | |
tree | 5412fc865db231d690c095f894e7c0d2aee7f55b /src/doc_reform/doc_reform.d | |
parent | cosmetic (diff) |
minor
Diffstat (limited to 'src/doc_reform/doc_reform.d')
-rwxr-xr-x | src/doc_reform/doc_reform.d | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/doc_reform/doc_reform.d b/src/doc_reform/doc_reform.d index 708c96a..369c91b 100755 --- a/src/doc_reform/doc_reform.d +++ b/src/doc_reform/doc_reform.d @@ -170,8 +170,8 @@ void main(string[] args) { "workon" : false, ]; string[string] settings = [ - "output-dir" : "", - "site-config-dir" : "", + "config" : "", + "output" : "", "lang" : "all", "sqlite-filename" : "documents", ]; @@ -232,8 +232,8 @@ void main(string[] args) { "theme-dark", "--theme-dark alternative dark theme", &opts["theme-dark"], "theme-light", "--theme-light default light theme", &opts["theme-light"], "workon", "--workon (reserved for some matters under development & testing)", &opts["workon"], - "output-dir", "--output-dir=[dir path]", &settings["output-dir"], - "site-config-dir", "--site-config-dir=[dir path]", &settings["site-config-dir"], + "config", "--config=/path/to/config/file/including/filename", &settings["config"], + "output", "--output=/path/to/output/dir specify where to place output", &settings["output"], "sqlite-filename", "--sqlite-filename=[filename].sqlite", &settings["sqlite-filename"], "lang", "--lang=[lang code e.g. =en or =en,es]", &settings["lang"], ); @@ -248,6 +248,9 @@ void main(string[] args) { bool concordance() { return opts["concordance"]; } + auto config_path_set() { + return settings["config"]; + } bool css_theme_default() { bool _is_light; if (opts["light"] || opts["theme-light"]) { @@ -398,7 +401,7 @@ void main(string[] args) { return settings["lang"].split(","); } auto output_dir_set() { - return settings["output-dir"]; + return settings["output"]; } auto sqlite_filename() { return settings["sqlite-filename"]; |