mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 14:27:54 +00:00
feat(command_parser): allow aliases in flags
This commit is contained in:
parent
bf5e448aad
commit
ff6dc12cae
4 changed files with 51 additions and 17 deletions
|
|
@ -4,7 +4,7 @@ pub fn cmds() -> impl Iterator<Item = Command> {
|
|||
let help = ["help", "h"];
|
||||
[
|
||||
command!([help] => "help")
|
||||
.value_flag("foo", OpaqueString) // todo: just for testing
|
||||
.flag(("foo", OpaqueString)) // todo: just for testing
|
||||
.help("Shows the help command"),
|
||||
command!([help, "commands"] => "help_commands").help("help commands"),
|
||||
command!([help, "proxy"] => "help_proxy").help("help proxy"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue