aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/doc_reform.org
diff options
context:
space:
mode:
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"];