diff options
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"]; |