Command-line application framework.
```rs use rawcmd::{Command, Flag, Intent};
fn resolver(intent: Intent) -> Option
let app = Command::withname("cmd1") .withdescription("Command 1") .withflag( Flag::withname("flag1") .withalias("f1") .withdescription("Flag 1") .withvalue(true, Some("default")) ) .withsubcommand( Command::withname("cmd1:1") .withdescription("Command 1:1") .withflag( Flag::withname(flag2) .withalias("f2") .withdescription("Flag 2") ) .withresolver(resolver) ) .withresolver(|_| { Some(0) }) .run();
match app { Ok(v) => println!("OK: {:?}", v), Err(v) => println!("Err: {:?}", v), } ```
cli command <input0> <input1>
).