diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-07-26 13:18:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-26 13:18:32 +0200 |
commit | 67d536fa7495eafb91be7f5a4798ddeb19aa6b97 (patch) | |
tree | aa225f2fc6afb4c1129f1a61875f5bbb2bf363e9 /bin | |
parent | b2e50efd50c5e1644e908b0ab3db0cbbcd1fb625 (diff) | |
parent | c4536478139e23e413f88da22fde7306a2e70b9e (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.rs | 2 |
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() }) |