Skip to main content

usage

Function usage 

Source
pub fn usage(msg: &str) -> String
Expand description

Localized usage message wrapping msg.

Kept distinct from validation because the two exit with different codes: a validation failure is about the DATA and exits 1, a usage failure is about the REQUEST and exits 2.