mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 08:41:34 +11:00
22 lines
551 B
Rust
22 lines
551 B
Rust
#![deny(clippy::all)]
|
|
use clap::Command;
|
|
|
|
mod publish;
|
|
|
|
fn main() {
|
|
let matches = Command::new("Agb tools")
|
|
.subcommand_required(true)
|
|
.arg_required_else_help(true)
|
|
.subcommand(publish::command())
|
|
.get_matches();
|
|
|
|
let result = match matches.subcommand() {
|
|
Some(("publish", arg_matches)) => publish::publish(arg_matches),
|
|
_ => unreachable!("Exhausted list of subcommands and subcommand_required prevents `None`"),
|
|
};
|
|
|
|
if let Err(e) = result {
|
|
eprintln!("Error: {:?}", e);
|
|
}
|
|
}
|