mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
cp: improve --preserve usage doc
* src/cp.c (usage): Improve description of --preserve.
This commit is contained in:
1 parent
01503ce731
commit
6baadf8ba3
1 file changed
+9
-5
@@ -183,11 +183,7 @@ Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n\
|
||||
"), stdout);
|
||||
fputs (_("\
|
||||
-p same as --preserve=mode,ownership,timestamps\n\
|
||||
--preserve[=ATTR_LIST] preserve the specified attributes (default:\n\
|
||||
mode,ownership,timestamps), if possible\n\
|
||||
additional attributes: context, links, xattr,\
|
||||
\n\
|
||||
all\n\
|
||||
--preserve[=ATTR_LIST] preserve the specified attributes\n\
|
||||
"), stdout);
|
||||
fputs (_("\
|
||||
--no-preserve=ATTR_LIST don't preserve the specified attributes\n\
|
||||
@@ -227,6 +223,14 @@ Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n\
|
||||
fputs (VERSION_OPTION_DESCRIPTION, stdout);
|
||||
fputs (_("\
|
||||
\n\
|
||||
ATTR_LIST is a comma-separated list of attributes. Attributes are 'mode' for\n\
|
||||
permissions (including any ACL and xattr permissions), 'ownership' for user\n\
|
||||
and group, 'timestamps' for file timestamps, 'links' for hard links, 'context'\n\
|
||||
for security context, 'xattr' for extended attributes, and 'all' for all\n\
|
||||
attributes.\n\
|
||||
"), stdout);
|
||||
fputs (_("\
|
||||
\n\
|
||||
By default, sparse SOURCE files are detected by a crude heuristic and the\n\
|
||||
corresponding DEST file is made sparse as well. That is the behavior\n\
|
||||
selected by --sparse=auto. Specify --sparse=always to create a sparse DEST\n\
|
||||
|
||||
Reference in new issue
Block a user