feat: require subcommand

This commit is contained in:
2023-04-03 22:48:49 +02:00
parent 502b9023d3
commit 06701ea7be

View File

@@ -11,7 +11,12 @@ async fn main() -> eyre::Result<()> {
color_eyre::install()?;
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();