summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-07-26 13:18:32 +0200
committerGitHub <noreply@github.com>2016-07-26 13:18:32 +0200
commit67d536fa7495eafb91be7f5a4798ddeb19aa6b97 (patch)
treeaa225f2fc6afb4c1129f1a61875f5bbb2bf363e9 /bin
parentb2e50efd50c5e1644e908b0ab3db0cbbcd1fb625 (diff)
parentc4536478139e23e413f88da22fde7306a2e70b9e (diff)
Merge pull request #567 from matthiasbeyer/bin/imag-seperator-remove
Remove dash from command listing
Diffstat (limited to 'bin')
-rw-r--r--bin/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/src/main.rs b/bin/src/main.rs
index c3847e65..9dc48b5b 100644
--- a/bin/src/main.rs
+++ b/bin/src/main.rs
@@ -80,7 +80,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()
})