From fcc1ebf078324ea54d7ca3bc00538dfac3fdc34f Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 13 Apr 2023 19:28:50 +0200 Subject: [PATCH] be more consistent in the help. use follow for deference options --- src/uu/du/src/du.rs | 4 ++-- src/uu/ln/src/ln.rs | 2 +- src/uu/ls/src/ls.rs | 4 ++-- src/uu/stat/stat.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/uu/du/src/du.rs b/src/uu/du/src/du.rs index f78e0d4ae..f6a631d20 100644 --- a/src/uu/du/src/du.rs +++ b/src/uu/du/src/du.rs @@ -817,14 +817,14 @@ pub fn uu_app() -> Command { Arg::new(options::DEREFERENCE) .short('L') .long(options::DEREFERENCE) - .help("dereference all symbolic links") + .help("follow all symbolic links") .action(ArgAction::SetTrue) ) .arg( Arg::new(options::DEREFERENCE_ARGS) .short('D') .long(options::DEREFERENCE_ARGS) - .help("dereference only symlinks that are listed on the command line") + .help("follow only symlinks that are listed on the command line") .action(ArgAction::SetTrue) ) // .arg( diff --git a/src/uu/ln/src/ln.rs b/src/uu/ln/src/ln.rs index bfff8d3eb..d98f3afb1 100644 --- a/src/uu/ln/src/ln.rs +++ b/src/uu/ln/src/ln.rs @@ -199,7 +199,7 @@ pub fn uu_app() -> Command { Arg::new(options::LOGICAL) .short('L') .long(options::LOGICAL) - .help("dereference TARGETs that are symbolic links") + .help("follow TARGETs that are symbolic links") .overrides_with(options::PHYSICAL) .action(ArgAction::SetTrue), ) diff --git a/src/uu/ls/src/ls.rs b/src/uu/ls/src/ls.rs index 9be9b19d4..52ac489ef 100644 --- a/src/uu/ls/src/ls.rs +++ b/src/uu/ls/src/ls.rs @@ -1422,7 +1422,7 @@ pub fn uu_app() -> Command { Arg::new(options::dereference::DIR_ARGS) .long(options::dereference::DIR_ARGS) .help( - "Do not dereference symlinks except when they link to directories and are \ + "Do not follow symlinks except when they link to directories and are \ given as command line arguments.", ) .overrides_with_all([ @@ -1436,7 +1436,7 @@ pub fn uu_app() -> Command { Arg::new(options::dereference::ARGS) .short('H') .long(options::dereference::ARGS) - .help("Do not dereference symlinks except when given as command line arguments.") + .help("Do not follow symlinks except when given as command line arguments.") .overrides_with_all([ options::dereference::ALL, options::dereference::DIR_ARGS, diff --git a/src/uu/stat/stat.md b/src/uu/stat/stat.md index d91f2b01f..ac63edd18 100644 --- a/src/uu/stat/stat.md +++ b/src/uu/stat/stat.md @@ -25,7 +25,7 @@ Valid format sequences for files (without `--file-system`): - `%i`: inode number - `%m`: mount point - `%n`: file name -- `%N`: quoted file name with dereference if symbolic link +- `%N`: quoted file name with dereference (follow) if symbolic link - `%o`: optimal I/O transfer size hint - `%s`: total size, in bytes - `%t`: major device type in hex, for character/block device special files