Function run_with_custom_args

Source
pub fn run_with_custom_args<A, F>(
    setup_fn: F,
) -> Result<Context, Box<dyn Error>>
where A: Args, F: Fn(&mut Context, BaseArgs, Option<A>) -> Result<(), IxaError>,
Expand description

Runs a simulation with custom cli arguments.

This function allows you to define custom arguments and a setup function

§Parameters

  • setup_fn: A function that takes a mutable reference to a Context, a BaseArgs struct, a Option<A> where A is the custom cli arguments struct

§Errors

Returns an error if argument parsing or the setup function fails