diff --git a/rust/src/builtins/scriptlet_intercept/groupadd.rs b/rust/src/builtins/scriptlet_intercept/groupadd.rs index 0b74a0a463..ef9e6dc393 100644 --- a/rust/src/builtins/scriptlet_intercept/groupadd.rs +++ b/rust/src/builtins/scriptlet_intercept/groupadd.rs @@ -46,7 +46,12 @@ fn cli_cmd() -> Command { Command::new(name) .bin_name(name) .about("create a new group") - .arg(Arg::new("force").short('f').long("force")) + .arg( + Arg::new("force") + .short('f') + .long("force") + .action(ArgAction::SetTrue), + ) .arg( Arg::new("gid") .short('g')