Replies: 1 comment 4 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.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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