Skip to content

Commit

Permalink
Merge pull request #4739 from sylvestre/following
Browse files Browse the repository at this point in the history
be more consistent in the help. use follow for deference options
  • Loading branch information
sylvestre authored Apr 14, 2023
2 parents 63f608d + fcc1ebf commit c021d3c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/uu/du/src/du.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/uu/ln/src/ln.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
Expand Down
4 changes: 2 additions & 2 deletions src/uu/ls/src/ls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand 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,
Expand Down
2 changes: 1 addition & 1 deletion src/uu/stat/stat.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c021d3c

Please sign in to comment.