From f0c6ac7630e8eb6d3bda9d7328fe9a6675e62b3d Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 12 Apr 2016 16:50:10 +0200 Subject: [PATCH] Adapt interface for external linking --- imag-link/src/ui.rs | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/imag-link/src/ui.rs b/imag-link/src/ui.rs index 8b8ec03b..e334c391 100644 --- a/imag-link/src/ui.rs +++ b/imag-link/src/ui.rs @@ -59,26 +59,33 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> { .required(true) .help("Modify external link of this entry")) - .arg(Arg::with_name("set") - .long("set") - .short("s") + .arg(Arg::with_name("add") + .long("add") + .short("a") .takes_value(true) .required(false) - .help("Set this URI as external link")) + .help("Add this URI as external link")) .arg(Arg::with_name("remove") .long("remove") .short("r") .takes_value(false) .required(false) - .help("Remove external link")) + .help("Remove one external link")) + + .arg(Arg::with_name("set") + .long("set") + .short("s") + .takes_value(true) + .required(false) + .help("Set these URIs as external link (seperate by comma)")) .arg(Arg::with_name("list") .long("list") .short("l") .takes_value(false) .required(false) - .help("List external link")) + .help("List external links")) ) }