Function arti::main_main

source ·
pub fn main_main<I, T>(cli_args: I) -> Result<()>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Expand description

Inner function, to handle a set of CLI arguments and return a single Result<()> for convenient handling.

§⚠️ Warning! ⚠️

If your program needs to call this function, you are setting yourself up for some serious maintenance headaches. See discussion on main and please reach out to help us build you a better API.

§Panics

Currently, might panic if wrong arguments are specified.