Remove dash from command listing

With this patch, we list "imag counter" instead of "imag-counter" in the
help output.
This commit is contained in:
Matthias Beyer 2016-07-21 13:41:09 +02:00
parent ce766427da
commit c453647813

View file

@ -78,7 +78,7 @@ fn get_commands() -> Vec<String> {
.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()
})