From d9adec34967f4e641937fcbedeb0aab4784aa287 Mon Sep 17 00:00:00 2001 From: Jan Scheer Date: Wed, 17 Mar 2021 14:46:25 +0100 Subject: [PATCH] add comment --- src/uu/rm/src/rm.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uu/rm/src/rm.rs b/src/uu/rm/src/rm.rs index 190fe9794..466a8d6c1 100644 --- a/src/uu/rm/src/rm.rs +++ b/src/uu/rm/src/rm.rs @@ -129,6 +129,8 @@ pub fn uumain(args: impl uucore::Args) -> i32 { .help("remove directories and their contents recursively") ) .arg( + // To mimic GNU's behavior we also want the '-R' flag. However, using clap's + // alias method 'visible_alias("R")' would result in a long '--R' flag. Arg::with_name(OPT_RECURSIVE_R).short("R") .help("Equivalent to -r") )