Only return subcommand name
This commit is contained in:
parent
cd70c68a01
commit
fa379a2fa7
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ fn get_commands() -> Vec<String> {
|
|||
.filter_map(|path| {
|
||||
path.file_name()
|
||||
.to_str()
|
||||
.and_then(|s| s.splitn(2, "-").nth(1).map(|s| format!("imag {}", s)))
|
||||
.and_then(|s| s.splitn(2, "-").nth(1).map(String::from))
|
||||
})
|
||||
.collect()
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue