UI: Add content-from argument, to get content from CLI _or_ from File/stdin
This commit is contained in:
parent
ef18cb1144
commit
2c30d474a9
1 changed files with 5 additions and 0 deletions
|
@ -21,6 +21,11 @@ pub fn build_ui<'a>(app: App<'a, 'a, 'a, 'a, 'a, 'a>) -> App<'a, 'a, 'a, 'a, 'a,
|
|||
.long("content")
|
||||
.short("c")
|
||||
.takes_value(true)
|
||||
.help("Content for the Entry from commandline"))
|
||||
.arg(Arg::with_name("content-from")
|
||||
.long("content-from")
|
||||
.short("f")
|
||||
.takes_value(true)
|
||||
.help("Content for the Entry from this file ('-' for stdin)"))
|
||||
.arg(Arg::with_name("header")
|
||||
.long("header")
|
||||
|
|
Loading…
Reference in a new issue