Replies: 2 comments 10 replies
-
You want to visible long names for the same command? There's no direct way to implement it - my assumption is for command line interface you want one and only one way for users to specify whatever they want, but you can always make two commands that parse in the same thing with minimal code duplication: fn command_body() -> OptionParser<Command> {
// make parser for command body here
}
fn commands() -> impl Parser<Command> {
let a = command_body().command("alpha");
let b = command_body().command("beta");
construct!([a, b])
} If you use derive macro - I wonder, why do you want that? |
Beta Was this translation helpful? Give feedback.
-
One more idea for the help output for visible aliases :
(if there is not enough text then the 2nd/3rd lines would just be empty, providing another visual cue that it's an alias without separate content) the aliases could be highlighted differently
|
Beta Was this translation helpful? Give feedback.
-
Hi 👋 , awesome library! 🐱
Is there a way to specify non-char alias' for a command, similar to
long
but not hidden?Beta Was this translation helpful? Give feedback.
All reactions