diff --git a/src/uu/chroot/src/chroot.rs b/src/uu/chroot/src/chroot.rs index 04db1380f..81c530dd8 100644 --- a/src/uu/chroot/src/chroot.rs +++ b/src/uu/chroot/src/chroot.rs @@ -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( diff --git a/tests/by-util/test_chroot.rs b/tests/by-util/test_chroot.rs index 31facdd55..711dd0943 100644 --- a/tests/by-util/test_chroot.rs +++ b/tests/by-util/test_chroot.rs @@ -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();