From 1c8c02c904abd913ed7621fc43eecd57c4b7aeec Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 2 Jan 2020 14:29:58 +0100 Subject: Fix: Clap argument name The clap argument name is written with dashes instead of underscores. Signed-off-by: Matthias Beyer --- bin/domain/imag-mail/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/domain/imag-mail/src/lib.rs b/bin/domain/imag-mail/src/lib.rs index 44529c76..ed931451 100644 --- a/bin/domain/imag-mail/src/lib.rs +++ b/bin/domain/imag-mail/src/lib.rs @@ -128,7 +128,7 @@ fn import_mail(rt: &Runtime) -> Result<()> { .unwrap() // enforced by clap .map(PathBuf::from) .map(|path| { - if scmd.is_present("ignore_existing_ids") { + if scmd.is_present("ignore-existing-ids") { store.retrieve_mail_from_path(path, &collection_name, &refconfig) } else { store.create_mail_from_path(path, &collection_name, &refconfig) -- cgit v1.2.3