Function save::cli::init

source · []
pub fn init() -> Args
Expand description

Initialize the typical global environment and parses the typical Args for save’s main CLI entry point.

Panics

This will panic if called multiple times, or if other code attempts conflicting global initialization of systems such as logging.

Examples found in repository
src/bin/save.rs (line 2)
1
2
3
pub fn main() -> Result<(), Box<dyn std::error::Error>> {
    Ok(save::cli::main(save::cli::init())?)
}