Skip to content

Commit

Permalink
Change arg require else help
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-Tan committed Mar 30, 2024
1 parent e8574ac commit d22e715
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ use std::process::Stdio;
#[command(name = "sysdep")]
#[command(version = "0.1.0")]
#[command(about = "A simple system dependency tool to list/install the apt/pip dependencies", long_about = None)]
#[command(arg_required_else_help = true)]
struct Cli {
#[arg(value_enum, default_value_t=CliCommand::List)]
#[arg(value_enum)]
command: CliCommand,
/// Please include the path with the quote, e.g. './**/'
#[arg(default_value = ".")]
Expand Down

0 comments on commit d22e715

Please sign in to comment.