Skip to main content

emit_usage_message

Function emit_usage_message 

Source
pub fn emit_usage_message(message: &str) -> Result<String, EmitError>
Expand description

Serialize a usage / unknown-subcommand error as stderr JSON (exit 2).

§Errors

Returns EmitError::Serialize when the envelope cannot be serialized.