mirror of
https://github.com/kjuulh/bitebuds.git
synced 2024-11-08 03:01:36 +01:00
feat: require subcommand
This commit is contained in:
parent
502b9023d3
commit
06701ea7be
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user