1 2 3 4 5 6 7 8 9 10 11 12
#[macro_use] extern crate clap; use clap::App; use tokio; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let yaml = load_yaml!("cli.yml"); let matches = App::from_yaml(yaml).get_matches(); guild::run(&matches).await }