Skip to main content

print_notice

Function print_notice 

Source
pub fn print_notice(msg: &str)
Expand description

Print a notice to stderr.

For anything the user should see that is about the command rather than part of its output — a deprecated flag, say. It has to be stderr: --json promises stdout carries one JSON document and nothing else, and a friendly note printed above it is the difference between a parseable contract and a parse error.