I have a fn main that is parsing arguments via StructOpt .. Args::from_args.
Is there a way to create this Args object without actually starting the executable for testing? Can I just create a Args object directly?
Can I do this for example
fn test_function() {
let args = Args::default();
args.param1 = "value1";
args.param2 = "value2";
core_function(args);
}
fn main() {
let args = Args::from_args();
core_function(args);
}