Skip to main content

pflag_error

Function pflag_error 

Source
pub fn pflag_error(e: &Error, cmd: &Command, raw: &[String]) -> String
Expand description

ADK’s error text for clap’s parse error e on cmd (the subcommand being parsed); raw are the command-line arguments, used where clap does not keep what ADK’s text reports (the token an unknown shorthand came from, whether a value-less flag was written short). Errors with no ADK text keep clap’s message.