Skip to content

Commit

Permalink
fix: handling of required command line multiple arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
desbma-s1n committed Apr 4, 2024
1 parent b0526b5 commit 79ec626
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pub enum Action {
/// Run a program to profile its behavior
Run {
/// The command line to run
#[arg(num_args = 1.., required = true)]
command: Vec<String>,
/// How hard we should harden
#[arg(short, long, default_value_t, value_enum)]
Expand All @@ -42,6 +43,7 @@ pub enum Action {
#[arg(short, long, default_value_t, value_enum)]
mode: HardeningMode,
/// Profile data paths
#[arg(num_args = 1.., required = true)]
paths: Vec<PathBuf>,
},
/// Act on a systemd service unit
Expand Down

0 comments on commit 79ec626

Please sign in to comment.