Skip to content

Commit

Permalink
chore(cli): Display the usage if no command is provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
lquerel committed May 31, 2024
1 parent d14e711 commit 3043bc0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ use clap::{Parser, Subcommand};

/// Command line arguments.
#[derive(Parser)]
#[command(author, version, about, long_about = None)]
#[command(
author,
version,
about,
long_about = None,
subcommand_required = true,
arg_required_else_help = true
)]
pub struct Cli {
/// Turn debugging information on
#[arg(short, long, action = clap::ArgAction::Count)]
Expand Down

0 comments on commit 3043bc0

Please sign in to comment.