pub fn run_args_safe<I>(args: I, cwd: &Path) -> Result<String>where
I: IntoIterator<Item = OsString>,Expand description
Run kg with CLI arguments, returning errors as Result instead of exiting.
Unlike run_args, this does not exit on parse errors - it returns them
as Err results. Useful for testing and embedding scenarios.