feat: require subcommand

This commit is contained in:
Kasper Juul Hermansen 2023-04-03 22:48:49 +02:00
parent 502b9023d3
commit 06701ea7be
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -11,7 +11,12 @@ async fn main() -> eyre::Result<()> {
color_eyre::install()?; color_eyre::install()?;
let cli = clap::Command::new("biteme") let cli = clap::Command::new("biteme")
.subcommand(clap::Command::new("generate").subcommand(clap::Command::new("article"))); .subcommand_required(true)
.subcommand(
clap::Command::new("generate")
.subcommand_required(true)
.subcommand(clap::Command::new("article")),
);
let args = std::env::args(); let args = std::env::args();