From 14fc6c7c7fa2530b85e375368373efb9ddc092e8 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 6 Apr 2018 14:24:30 +0200 Subject: [PATCH] Add format argument --- bin/domain/imag-contact/src/ui.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bin/domain/imag-contact/src/ui.rs b/bin/domain/imag-contact/src/ui.rs index 7ebc78a1..3a22a650 100644 --- a/bin/domain/imag-contact/src/ui.rs +++ b/bin/domain/imag-contact/src/ui.rs @@ -114,6 +114,18 @@ pub fn build_ui<'a>(app: App<'a, 'a>) -> App<'a, 'a> { .required(false) .multiple(false) .help("Print output as JSON") + .conflicts_with("format") + .conflicts_with("find-show") + .conflicts_with("find-list")) + + .arg(Arg::with_name("format") + .long("format") + .takes_value(true) + .required(false) + .multiple(false) + .value_name("FORMAT") + .help("Format to format the contact when printing it") + .conflicts_with("json") .conflicts_with("find-show") .conflicts_with("find-list"))