Skip to content

Commit

Permalink
Merge pull request #7051 from cakebaker/chroot_remove_g_short_option
Browse files Browse the repository at this point in the history
chroot: remove `-G` short option
  • Loading branch information
sylvestre authored Jan 3, 2025
2 parents 2cdf309 + e22bcbb commit 88cdf16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/uu/chroot/src/chroot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,19 +192,14 @@ pub fn uu_app() -> Command {
)
.arg(
Arg::new(options::GROUPS)
.short('G')
.long(options::GROUPS)
.help("Comma-separated list of groups to switch to")
.value_name("GROUP1,GROUP2..."),
)
.arg(
Arg::new(options::USERSPEC)
.long(options::USERSPEC)
.help(
"Colon-separated user and group to switch to. \
Same as -u USER -g GROUP. \
Userspec has higher preference than -u and/or -g",
)
.help("Colon-separated user and group to switch to.")
.value_name("USER:GROUP"),
)
.arg(
Expand Down
2 changes: 1 addition & 1 deletion tests/by-util/test_chroot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ fn test_preference_of_userspec() {
.arg("a")
.arg("--user")
.arg("fake")
.arg("-G")
.arg("--groups")
.arg("ABC,DEF")
.arg(format!("--userspec={username}:{group_name}"))
.fails();
Expand Down

0 comments on commit 88cdf16

Please sign in to comment.