Skip to main content

lib_main_from_argv

Function lib_main_from_argv 

Source
pub fn lib_main_from_argv<I, T>(argv: I)
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Expand description

Parse a command line and run it, the way both dora entry points need to.

main.rs and the dora console script in the dora-rs-cli wheel both land here, so clap’s exit behaviour – usage errors to stderr with status 2, --help / --version to stdout with status 0 – is defined once instead of being reimplemented per entry point.