diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-01-31 12:37:40 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-02-09 13:45:13 +0100 |
commit | 2c30d474a9f3c746c9784fc48ddb241f931f5b37 (patch) | |
tree | 2bd4c1e2c547159a3e39ebaa40d3807db31407c0 /imag-store | |
parent | ef18cb11445bda3c57dfeccfd05a5a0761a876ac (diff) |
UI: Add content-from argument, to get content from CLI _or_ from File/stdin
Diffstat (limited to 'imag-store')
-rw-r--r-- | imag-store/src/ui.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/imag-store/src/ui.rs b/imag-store/src/ui.rs index b7ac4e16..ae55d8fb 100644 --- a/imag-store/src/ui.rs +++ b/imag-store/src/ui.rs @@ -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") |