Merge pull request #1375 from matthiasbeyer/imag-contact/find-format

imag-contact: Add format argument
This commit is contained in:
Matthias Beyer 2018-04-06 15:32:15 +02:00 committed by GitHub
commit 2cee4ba90f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"))