Skip to content

Commit

Permalink
Merge pull request #4489 from HuijingHei/fix-groupadd-force
Browse files Browse the repository at this point in the history
sysuers: fix error if running `groupadd` with `-f`
  • Loading branch information
HuijingHei committed Jul 6, 2023
2 parents 1701971 + dc3d8a2 commit 1a275ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rust/src/builtins/scriptlet_intercept/groupadd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 1a275ee

Please sign in to comment.