mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 04:27:45 +00:00
cp: remove long help
This commit is contained in:
parent
85ded232bc
commit
b707b690c5
1 changed files with 0 additions and 16 deletions
|
@ -282,21 +282,6 @@ static PRESERVABLE_ATTRIBUTES: &[&str] = &[
|
|||
"all",
|
||||
];
|
||||
|
||||
static CP_UPDATE_LONG_HELP: &str =
|
||||
"Do not copy a non-directory that has an existing destination with the same or newer modification timestamp;
|
||||
instead, silently skip the file without failing. If timestamps are being preserved, the comparison is to the
|
||||
source timestamp truncated to the resolutions of the destination file system and of the system calls used to
|
||||
update timestamps; this avoids duplicate work if several ‘cp -pu’ commands are executed with the same source
|
||||
and destination. This option is ignored if the -n or --no-clobber option is also specified. Also, if
|
||||
--preserve=links is also specified (like with ‘cp -au’ for example), that will take precedence; consequently,
|
||||
depending on the order that files are processed from the source, newer files in the destination may be
|
||||
replaced, to mirror hard links in the source. which gives more control over which existing files in the
|
||||
destination are replaced, and its value can be one of the following:
|
||||
|
||||
all This is the default operation when an --update option is not specified, and results in all existing files in the destination being replaced.
|
||||
none This is similar to the --no-clobber option, in that no files in the destination are replaced, but also skipping a file does not induce a failure.
|
||||
older This is the default operation when --update is specified, and results in files being replaced if they’re older than the corresponding source file.";
|
||||
|
||||
#[cfg(not(unix))]
|
||||
static PRESERVABLE_ATTRIBUTES: &[&str] =
|
||||
&["mode", "timestamps", "context", "links", "xattr", "all"];
|
||||
|
@ -577,7 +562,6 @@ pub fn uu_app() -> Command {
|
|||
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||
let matches = uu_app()
|
||||
.after_help(backup_control::BACKUP_CONTROL_LONG_HELP)
|
||||
.after_help(CP_UPDATE_LONG_HELP)
|
||||
.try_get_matches_from(args);
|
||||
|
||||
// The error is parsed here because we do not want version or help being printed to stderr.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue