From c4536478139e23e413f88da22fde7306a2e70b9e Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 21 Jul 2016 13:41:09 +0200 Subject: [PATCH] Remove dash from command listing With this patch, we list "imag counter" instead of "imag-counter" in the help output. --- bin/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/src/main.rs b/bin/src/main.rs index 32723dc3..e852a06a 100644 --- a/bin/src/main.rs +++ b/bin/src/main.rs @@ -78,7 +78,7 @@ fn get_commands() -> Vec { .filter_map(|path| { path.file_name() .to_str() - .map(String::from) + .and_then(|s| s.splitn(2, "-").nth(1).map(|s| format!("imag {}", s))) }) .collect() })