tar: add -k and -o to --help
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 16 Mar 2018 02:55:14 +0000 (03:55 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 16 Mar 2018 02:55:14 +0000 (03:55 +0100)
    -o Don't restore user:group
    -k Don't replace existing files

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/tar.c

index 415ebde0d96669912adc5c383b8b4fb602ca07f4..4515d425016309edd65fad5d367318b363ca3e0b 100644 (file)
@@ -776,6 +776,9 @@ static llist_t *append_file_list_to_list(llist_t *list)
 //usage:     "\n       -f FILE Name of TARFILE ('-' for stdin/out)"
 //usage:     "\n       -C DIR  Change to DIR before operation"
 //usage:     "\n       -v      Verbose"
+//usage:     "\n       -o      Don't restore user:group"
+///////:-p - accepted but ignored, restores mode (aliases in GNU tar: --preserve-permissions, --same-permissions)
+//usage:     "\n       -k      Don't replace existing files"
 //usage:       IF_FEATURE_SEAMLESS_Z(
 //usage:     "\n       -Z      (De)compress using compress"
 //usage:       )
@@ -811,9 +814,6 @@ static llist_t *append_file_list_to_list(llist_t *list)
 //usage:       "$ tar -cf /tmp/tarball.tar /usr/local\n"
 
 // Supported but aren't in --help:
-//     o       no-same-owner
-//     p       same-permissions
-//     k       keep-old
 //     no-recursion
 //     numeric-owner
 //     no-same-permissions