From 91f1e46282d31e0019e135c68676217aac436084 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 8 Jun 2016 14:11:13 +0200 Subject: [PATCH] Add value_name() call in ui specification code --- imag-notes/src/ui.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/imag-notes/src/ui.rs b/imag-notes/src/ui.rs index bf2047d7..6b3b099f 100644 --- a/imag-notes/src/ui.rs +++ b/imag-notes/src/ui.rs @@ -13,7 +13,8 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> { .short("n") .takes_value(true) .required(true) - .help("Create Note with this name")) + .help("Create Note with this name") + .value_name("NAME")) .arg(Arg::with_name("edit") .long("edit") .short("e") @@ -30,7 +31,8 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> { .short("n") .takes_value(true) .required(true) - .help("Delete Note with this name"))) + .help("Delete Note with this name") + .value_name("NAME"))) .subcommand(SubCommand::with_name("edit") .about("Edit a Note") @@ -40,7 +42,8 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> { .short("n") .takes_value(true) .required(true) - .help("Edit Note with this name")) + .help("Edit Note with this name") + .value_name("NAME")) .arg(tag_argument()) .group(ArgGroup::with_name("editargs") @@ -53,5 +56,3 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> { .version("0.1")) } - -