fix: swap cp’s short -r and alias -R recursive options

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 <LucasLarson@riseup.net>
This commit is contained in:
Lucas Larson 2024-04-14 15:30:17 -04:00
parent 333e4d9fe9
commit ffab3a12e7
No known key found for this signature in database
GPG key ID: 534FA8DFC1C87463

View file

@ -475,8 +475,8 @@ pub fn uu_app() -> Command {
) )
.arg( .arg(
Arg::new(options::RECURSIVE) Arg::new(options::RECURSIVE)
.short('r') .short('R')
.visible_short_alias('R') .visible_short_alias('r')
.long(options::RECURSIVE) .long(options::RECURSIVE)
// --archive sets this option // --archive sets this option
.help("copy directories recursively") .help("copy directories recursively")