mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 23:02:38 +00:00
be more consistent in the help. use follow for deference options
This commit is contained in:
parent
63f608d249
commit
fcc1ebf078
4 changed files with 6 additions and 6 deletions
|
@ -817,14 +817,14 @@ pub fn uu_app() -> Command {
|
||||||
Arg::new(options::DEREFERENCE)
|
Arg::new(options::DEREFERENCE)
|
||||||
.short('L')
|
.short('L')
|
||||||
.long(options::DEREFERENCE)
|
.long(options::DEREFERENCE)
|
||||||
.help("dereference all symbolic links")
|
.help("follow all symbolic links")
|
||||||
.action(ArgAction::SetTrue)
|
.action(ArgAction::SetTrue)
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(options::DEREFERENCE_ARGS)
|
Arg::new(options::DEREFERENCE_ARGS)
|
||||||
.short('D')
|
.short('D')
|
||||||
.long(options::DEREFERENCE_ARGS)
|
.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)
|
.action(ArgAction::SetTrue)
|
||||||
)
|
)
|
||||||
// .arg(
|
// .arg(
|
||||||
|
|
|
@ -199,7 +199,7 @@ pub fn uu_app() -> Command {
|
||||||
Arg::new(options::LOGICAL)
|
Arg::new(options::LOGICAL)
|
||||||
.short('L')
|
.short('L')
|
||||||
.long(options::LOGICAL)
|
.long(options::LOGICAL)
|
||||||
.help("dereference TARGETs that are symbolic links")
|
.help("follow TARGETs that are symbolic links")
|
||||||
.overrides_with(options::PHYSICAL)
|
.overrides_with(options::PHYSICAL)
|
||||||
.action(ArgAction::SetTrue),
|
.action(ArgAction::SetTrue),
|
||||||
)
|
)
|
||||||
|
|
|
@ -1422,7 +1422,7 @@ pub fn uu_app() -> Command {
|
||||||
Arg::new(options::dereference::DIR_ARGS)
|
Arg::new(options::dereference::DIR_ARGS)
|
||||||
.long(options::dereference::DIR_ARGS)
|
.long(options::dereference::DIR_ARGS)
|
||||||
.help(
|
.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.",
|
given as command line arguments.",
|
||||||
)
|
)
|
||||||
.overrides_with_all([
|
.overrides_with_all([
|
||||||
|
@ -1436,7 +1436,7 @@ pub fn uu_app() -> Command {
|
||||||
Arg::new(options::dereference::ARGS)
|
Arg::new(options::dereference::ARGS)
|
||||||
.short('H')
|
.short('H')
|
||||||
.long(options::dereference::ARGS)
|
.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([
|
.overrides_with_all([
|
||||||
options::dereference::ALL,
|
options::dereference::ALL,
|
||||||
options::dereference::DIR_ARGS,
|
options::dereference::DIR_ARGS,
|
||||||
|
|
|
@ -25,7 +25,7 @@ Valid format sequences for files (without `--file-system`):
|
||||||
- `%i`: inode number
|
- `%i`: inode number
|
||||||
- `%m`: mount point
|
- `%m`: mount point
|
||||||
- `%n`: file name
|
- `%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
|
- `%o`: optimal I/O transfer size hint
|
||||||
- `%s`: total size, in bytes
|
- `%s`: total size, in bytes
|
||||||
- `%t`: major device type in hex, for character/block device special files
|
- `%t`: major device type in hex, for character/block device special files
|
||||||
|
|
Loading…
Reference in a new issue