diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-07-21 13:41:09 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-07-21 13:41:11 +0200 |
commit | c4536478139e23e413f88da22fde7306a2e70b9e (patch) | |
tree | 96cd89ac8ebcf26fe75c72f0eba7366e9493a95e /bin | |
parent | ce766427dad15710842a29f52d813131f897c134 (diff) |
Remove dash from command listing
With this patch, we list "imag counter" instead of "imag-counter" in the
help output.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<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() }) |