mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-10 07:47:53 +00:00
fix: add the helper methods for resolving flag values
This commit is contained in:
parent
07e8a4851a
commit
bf5e448aad
2 changed files with 57 additions and 1 deletions
|
|
@ -3,7 +3,9 @@ use super::*;
|
|||
pub fn cmds() -> impl Iterator<Item = Command> {
|
||||
let help = ["help", "h"];
|
||||
[
|
||||
command!([help] => "help").help("Shows the help command"),
|
||||
command!([help] => "help")
|
||||
.value_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