Skip to content

Position rest arguments before required arguments #5473

Answered by epage
KAAtheWiseGit asked this question in Q&A
Discussion options

You must be logged in to vote

Clap does not support that. We have very limited support for optional non-last argument.

To override the usage, Command::override_usage can be used as an attribute #[command(override_usage = "")]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@KAAtheWiseGit
Comment options

Answer selected by KAAtheWiseGit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants