summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-01-02 14:29:58 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-01-02 14:51:41 +0100
commit1c8c02c904abd913ed7621fc43eecd57c4b7aeec (patch)
treed4c1b737618371b0d7d8f9a1717531777f88c1c5
parent6708c223abde751a1a25f8ede2ccb7713c67d049 (diff)
Fix: Clap argument name
The clap argument name is written with dashes instead of underscores. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--bin/domain/imag-mail/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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)