pub fn run_with_custom_args<A, F>(
setup_fn: F,
) -> Result<Context, Box<dyn Error>>
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 aContext
, aBaseArgs
struct, a Option where A is the custom cli arguments struct
§Errors
Returns an error if argument parsing or the setup function fails