Skip to main content

report_argerror

Function report_argerror 

Source
pub fn report_argerror(usage: &str, argerr: &ArgError) -> ExitCode
Expand description

Decide the ExitCode for an ArgError and write it to stderr. Also write the usage information if that makes sense for this ArgError variant. For example, ArgError::ExitSuccessfully and ArgError::InvalidUnicode do not need the usage information.