summaryrefslogtreecommitdiffhomepage
path: root/archival
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-11-10 22:14:22 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2017-11-10 22:14:22 +0100
commit02e93b3a28e857015cd7678fbd8dd54c01ab8a5a (patch)
tree41e5525bbc4245772872ec21fbcac74e329fe464 /archival
parent2fee2bce6f9c67c0836598e340bee8ae2e980212 (diff)
tar: improve help text
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival')
-rw-r--r--archival/tar.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/archival/tar.c b/archival/tar.c
index b6d5129d8..08924903e 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -757,8 +757,9 @@ static llist_t *append_file_list_to_list(llist_t *list)
//usage: IF_FEATURE_TAR_CREATE("h")
//usage: IF_FEATURE_TAR_NOPRESERVE_TIME("m")
//usage: "vO] "
-//usage: IF_FEATURE_TAR_FROM("[-X FILE] [-T FILE] ")
-//usage: "[-f TARFILE] [-C DIR] [FILE]..."
+//usage: "[-f TARFILE] [-C DIR] "
+//usage: IF_FEATURE_TAR_FROM("[-T FILE] [-X FILE] "IF_FEATURE_TAR_LONG_OPTIONS("[--exclude PATTERN] "))
+//usage: "[FILE]..."
//usage:#define tar_full_usage "\n\n"
//usage: IF_FEATURE_TAR_CREATE("Create, extract, ")
//usage: IF_NOT_FEATURE_TAR_CREATE("Extract ")
@@ -769,8 +770,8 @@ static llist_t *append_file_list_to_list(llist_t *list)
//usage: )
//usage: "\n x Extract"
//usage: "\n t List"
-//usage: "\n f Name of TARFILE ('-' for stdin/out)"
-//usage: "\n C Change to DIR before operation"
+//usage: "\n f FILE Name of TARFILE ('-' for stdin/out)"
+//usage: "\n C DIR Change to DIR before operation"
//usage: "\n v Verbose"
//usage: IF_FEATURE_SEAMLESS_Z(
//usage: "\n Z (De)compress using compress"
@@ -795,11 +796,11 @@ static llist_t *append_file_list_to_list(llist_t *list)
//usage: "\n m Don't restore mtime"
//usage: )
//usage: IF_FEATURE_TAR_FROM(
+//usage: "\n T FILE File with names to include"
+//usage: "\n X FILE File with glob patterns to exclude"
//usage: IF_FEATURE_TAR_LONG_OPTIONS(
-//usage: "\n exclude File to exclude"
+//usage: "\n --exclude PATTERN Glob pattern to exclude"
//usage: )
-//usage: "\n X File with names to exclude"
-//usage: "\n T File with names to include"
//usage: )
//usage:
//usage:#define tar_example_usage