Skip to content

Commit

Permalink
Print error message if no args
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernthedev committed Sep 4, 2024
1 parent 50d798f commit ec6a47e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ pub trait Command {
}

#[derive(Parser)]
#[command(name = "qpm")]
#[command(name = "qpm", bin_name = "qpm", version, about, long_about)]
#[command(arg_required_else_help = true)]
pub struct Opt {
// If provided, outputs the completion file for given shell
#[arg(long = "generate", value_enum)]
pub generator: Option<Shell>,

#[command(subcommand)]
pub command: Option<MainCommand>,
}
Expand Down

0 comments on commit ec6a47e

Please sign in to comment.