Function bdrck::flags::main_impl::main_impl_single_command
[−]
[src]
pub fn main_impl_single_command<E: Error>(command: Command<E>) -> !
Parses command-line parameters and executes the given command.
This function exits this process with an appropriate exit code. Like
std::process::exit
, because this function never returns and it terminates
the process, no destructors on the current stack or any other thread's
stack will be run. The caller should ensure that this function is called
from the only thread, and that any destructors which need to be run are in
the stack of the command callback.