aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/doc_reform.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2019-10-22 19:56:58 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2019-11-19 16:55:29 -0500
commit3668f9ec6b4dd096f2109557ca523b3d774ad6d1 (patch)
tree5412fc865db231d690c095f894e7c0d2aee7f55b /org/doc_reform.org
parentcosmetic (diff)
minor
Diffstat (limited to 'org/doc_reform.org')
-rw-r--r--org/doc_reform.org13
1 files changed, 8 insertions, 5 deletions
diff --git a/org/doc_reform.org b/org/doc_reform.org
index f367dea..5b44538 100644
--- a/org/doc_reform.org
+++ b/org/doc_reform.org
@@ -377,8 +377,8 @@ bool[string] opts = [
"workon" : false,
];
string[string] settings = [
- "output-dir" : "",
- "site-config-dir" : "",
+ "config" : "",
+ "output" : "",
"lang" : "all",
"sqlite-filename" : "documents",
];
@@ -439,8 +439,8 @@ auto helpInfo = getopt(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"],
);
@@ -462,6 +462,9 @@ struct OptActions {
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"]) {
@@ -612,7 +615,7 @@ struct OptActions {
return settings["lang"].split(",");
}
auto output_dir_set() {
- return settings["output-dir"];
+ return settings["output"];
}
auto sqlite_filename() {
return settings["sqlite-filename"];