UI: Add content-from argument, to get content from CLI _or_ from File/stdin

This commit is contained in:
Matthias Beyer 2016-01-31 12:37:40 +01:00
parent ef18cb1144
commit 2c30d474a9

View file

@ -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")