//! Reading the command line: flags, arguments and subcommands, with `--help` drawn from the //! same description. Try `-- --help`, `-- ship my-app --regon eu` or `-- stauts`. use tinsel::Cli; fn main() { let cli = Cli::new("deploy", "ship an app to the cloud") .version(env!("CARGO_PKG_VERSION")) .flag("-q, --quiet", "only print problems") .command( Cli::new("ship", "deploy an app") .flag("-r, --region ", "where to deploy (default: eu-west-2)") .flag("--replicas ", "how many copies to run (default: 1)") .arg("", "what to ship"), ) .command(Cli::new("status", "what's running where")) .command(Cli::new("logs", "recent logs").flag("--since