main

Attribute Macro main 

Source
#[main]
Expand description

Macro to wrap a main(args: Parser, terminated: Arc<AtomicBool>) that returns impl Future<Output = Result<(), E>>.

On error, it prints the error, then calls std::process::exit(e.exit_code()).