diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-06-08 19:35:51 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-06-09 15:41:42 +0200 |
commit | 7f4a721897625ceb85073d25ab5a068bde73c44d (patch) | |
tree | b649a3e14dc7114763f2702ca9cb1368c7fc6836 /imag-diary | |
parent | d8071a56246493e012629358afa7159949840e98 (diff) |
Add ui spec for viewing entries
Diffstat (limited to 'imag-diary')
-rw-r--r-- | imag-diary/src/ui.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/imag-diary/src/ui.rs b/imag-diary/src/ui.rs index e923a25d..a38060bd 100644 --- a/imag-diary/src/ui.rs +++ b/imag-diary/src/ui.rs @@ -91,5 +91,17 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> { .required(false) .help("Do not ask for confirmation.")) ) + + .subcommand(SubCommand::with_name("view") + .about("View entries, currently only supports plain viewing") + .version("0.1") + + .arg(Arg::with_name("show-header") + .long("header") + .takes_value(false) + .required(false) + .help("Show the header when printing the entries")) + ) + } |