From 79ec6267239e3b29d0576ca62f954c1cabfb60c6 Mon Sep 17 00:00:00 2001 From: desbma-s1n Date: Thu, 4 Apr 2024 11:48:47 +0200 Subject: [PATCH] fix: handling of required command line multiple arguments --- src/cl.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cl.rs b/src/cl.rs index 5b753dd..3c6d8b7 100644 --- a/src/cl.rs +++ b/src/cl.rs @@ -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, /// How hard we should harden #[arg(short, long, default_value_t, value_enum)] @@ -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, }, /// Act on a systemd service unit