From 7f4a721897625ceb85073d25ab5a068bde73c44d Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 8 Jun 2016 19:35:51 +0200 Subject: [PATCH] Add ui spec for viewing entries --- imag-diary/src/ui.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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")) + ) + }