Skip to main content

subcommand_args

Function subcommand_args 

Source
pub fn subcommand_args(path: &[&str]) -> Vec<ArgInfo>
Expand description

Return the list of user-facing arguments for a subcommand path.

Example: subcommand_args(&["cashu", "send"]) returns the args for afpay cashu send.

Hidden args and internal clap args (help, version) are excluded. Flattened structs (e.g. CommonSendArgs) are inlined automatically by clap.