mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Merge pull request #7051 from cakebaker/chroot_remove_g_short_option
chroot: remove `-G` short option
This commit is contained in:
@@ -192,7 +192,6 @@ 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..."),
|
||||
@@ -200,11 +199,7 @@ pub fn uu_app() -> Command {
|
||||
.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(
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user