use argopt::*; type Result = std::result::Result>; #[subcmd] fn foo() -> Result<()> { Ok(()) } #[subcmd] fn bar() -> Result<()> { Err("error")? } #[cmd_group(commands = [foo, bar])] fn main() -> Result<()> {}