Adapt interface for external linking
This commit is contained in:
parent
e4e3c05f05
commit
f0c6ac7630
1 changed files with 13 additions and 6 deletions
|
@ -59,26 +59,33 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> {
|
||||||
.required(true)
|
.required(true)
|
||||||
.help("Modify external link of this entry"))
|
.help("Modify external link of this entry"))
|
||||||
|
|
||||||
.arg(Arg::with_name("set")
|
.arg(Arg::with_name("add")
|
||||||
.long("set")
|
.long("add")
|
||||||
.short("s")
|
.short("a")
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.required(false)
|
.required(false)
|
||||||
.help("Set this URI as external link"))
|
.help("Add this URI as external link"))
|
||||||
|
|
||||||
.arg(Arg::with_name("remove")
|
.arg(Arg::with_name("remove")
|
||||||
.long("remove")
|
.long("remove")
|
||||||
.short("r")
|
.short("r")
|
||||||
.takes_value(false)
|
.takes_value(false)
|
||||||
.required(false)
|
.required(false)
|
||||||
.help("Remove external link"))
|
.help("Remove one external link"))
|
||||||
|
|
||||||
|
.arg(Arg::with_name("set")
|
||||||
|
.long("set")
|
||||||
|
.short("s")
|
||||||
|
.takes_value(true)
|
||||||
|
.required(false)
|
||||||
|
.help("Set these URIs as external link (seperate by comma)"))
|
||||||
|
|
||||||
.arg(Arg::with_name("list")
|
.arg(Arg::with_name("list")
|
||||||
.long("list")
|
.long("list")
|
||||||
.short("l")
|
.short("l")
|
||||||
.takes_value(false)
|
.takes_value(false)
|
||||||
.required(false)
|
.required(false)
|
||||||
.help("List external link"))
|
.help("List external links"))
|
||||||
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue