From ffab3a12e772a35ee27c555740fb50a1872d25c5 Mon Sep 17 00:00:00 2001 From: Lucas Larson Date: Sun, 14 Apr 2024 15:30:17 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20swap=20`cp`=E2=80=99s=20short=20`-r`=20a?= =?UTF-8?q?nd=20alias=20`-R`=20recursive=20options?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the only implementable portion of #6223 is “to switch `-R` and `-r` to `-r` being the alias because `-R` is the POSIX flag” https://github.com/uutils/coreutils/issues/6223#issuecomment-2054097049 Signed-off-by: Lucas Larson --- src/uu/cp/src/cp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uu/cp/src/cp.rs b/src/uu/cp/src/cp.rs index d45f99418..9806c125b 100644 --- a/src/uu/cp/src/cp.rs +++ b/src/uu/cp/src/cp.rs @@ -475,8 +475,8 @@ pub fn uu_app() -> Command { ) .arg( Arg::new(options::RECURSIVE) - .short('r') - .visible_short_alias('R') + .short('R') + .visible_short_alias('r') .long(options::RECURSIVE) // --archive sets this option .help("copy directories recursively")