summaryrefslogtreecommitdiffstats
path: root/bin/domain/imag-wiki/src/ui.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bin/domain/imag-wiki/src/ui.rs')
-rw-r--r--bin/domain/imag-wiki/src/ui.rs21
1 files changed, 19 insertions, 2 deletions
diff --git a/bin/domain/imag-wiki/src/ui.rs b/bin/domain/imag-wiki/src/ui.rs
index c24363fd..1c32d2a0 100644
--- a/bin/domain/imag-wiki/src/ui.rs
+++ b/bin/domain/imag-wiki/src/ui.rs
@@ -70,7 +70,15 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> {
.required(true)
.multiple(false)
.value_name("NAME")
- .help("Create the entry under this name. Namespaces ('foo/bar') are allowed."))
+ .help("Name of the wiki"))
+
+ .arg(Arg::with_name("create-mainpagename")
+ .long("mainpage")
+ .short("M")
+ .takes_value(true)
+ .required(false)
+ .multiple(false)
+ .help("Name of the main page. Currently only for the first page to be created. Defaults to 'main'."))
.arg(Arg::with_name("create-noedit")
.long("no-edit")
@@ -78,7 +86,16 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> {
.takes_value(false)
.required(false)
.multiple(false)
- .help("Do not call the editor on the newly created entry."))
+ .help("Do not call the editor on the newly created entry.")
+ .conflicts_with("create-editheader"))
+
+ .arg(Arg::with_name("create-editheader")
+ .long("header")
+ .takes_value(false)
+ .required(false)
+ .multiple(false)
+ .help("Do edit header when editing main page entry.")
+ .conflicts_with("create-noedit"))
.arg(Arg::with_name("create-printid")
.long("print-id")