diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-08 16:46:41 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-08 16:46:41 +0100 |
commit | c9b93cf2908c845c60ad70cbed0074c4c0903208 (patch) | |
tree | c0d4b94437641d1a45753f9793094cc874e61680 | |
parent | 34c5115a7fb2adb7562b5638264112f5d83bf6cf (diff) | |
download | busybox-w32-c9b93cf2908c845c60ad70cbed0074c4c0903208.tar.gz busybox-w32-c9b93cf2908c845c60ad70cbed0074c4c0903208.tar.bz2 busybox-w32-c9b93cf2908c845c60ad70cbed0074c4c0903208.zip |
tar: expand --help
function old new delta
packed_usage 33486 33590 +104
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | archival/tar.c | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/archival/tar.c b/archival/tar.c index 93184cc2a..9d4c7b662 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -775,7 +775,7 @@ static llist_t *append_file_list_to_list(llist_t *list) | |||
775 | //usage: IF_FEATURE_TAR_NOPRESERVE_TIME("m") | 775 | //usage: IF_FEATURE_TAR_NOPRESERVE_TIME("m") |
776 | //usage: "vokO] " | 776 | //usage: "vokO] " |
777 | //usage: "[-f TARFILE] [-C DIR] " | 777 | //usage: "[-f TARFILE] [-C DIR] " |
778 | //usage: IF_FEATURE_TAR_FROM("[-T FILE] [-X FILE] "IF_FEATURE_TAR_LONG_OPTIONS("[--exclude PATTERN]... ")) | 778 | //usage: IF_FEATURE_TAR_FROM("[-T FILE] [-X FILE] "IF_FEATURE_TAR_LONG_OPTIONS("[OPTION]... ")) |
779 | //usage: "[FILE]..." | 779 | //usage: "[FILE]..." |
780 | //usage:#define tar_full_usage "\n\n" | 780 | //usage:#define tar_full_usage "\n\n" |
781 | //usage: IF_FEATURE_TAR_CREATE("Create, extract, ") | 781 | //usage: IF_FEATURE_TAR_CREATE("Create, extract, ") |
@@ -809,6 +809,11 @@ static llist_t *append_file_list_to_list(llist_t *list) | |||
809 | //usage: IF_FEATURE_SEAMLESS_BZ2( | 809 | //usage: IF_FEATURE_SEAMLESS_BZ2( |
810 | //usage: "\n -j (De)compress using bzip2" | 810 | //usage: "\n -j (De)compress using bzip2" |
811 | //usage: ) | 811 | //usage: ) |
812 | //usage: IF_FEATURE_SEAMLESS_LZMA( | ||
813 | //usage: IF_FEATURE_TAR_LONG_OPTIONS( | ||
814 | //usage: "\n --lzma (De)compress using lzma" | ||
815 | //usage: ) | ||
816 | //usage: ) | ||
812 | //usage: "\n -a (De)compress based on extension" | 817 | //usage: "\n -a (De)compress based on extension" |
813 | //usage: IF_FEATURE_TAR_CREATE( | 818 | //usage: IF_FEATURE_TAR_CREATE( |
814 | //usage: "\n -h Follow symlinks" | 819 | //usage: "\n -h Follow symlinks" |
@@ -820,21 +825,21 @@ static llist_t *append_file_list_to_list(llist_t *list) | |||
820 | //usage: "\n --exclude PATTERN Glob pattern to exclude" | 825 | //usage: "\n --exclude PATTERN Glob pattern to exclude" |
821 | //usage: ) | 826 | //usage: ) |
822 | //usage: ) | 827 | //usage: ) |
828 | //usage: IF_FEATURE_TAR_LONG_OPTIONS( | ||
829 | //usage: "\n --overwrite Replace existing files" | ||
830 | //usage: "\n --strip-components NUM NUM of leading components to strip" | ||
831 | //usage: "\n --no-recursion Don't descend in directories" | ||
832 | //usage: "\n --numeric-owner Use numeric user:group" | ||
833 | //usage: "\n --no-same-permissions Don't restore access permissions" | ||
834 | //usage: IF_FEATURE_TAR_TO_COMMAND( | ||
835 | //usage: "\n --to-command COMMAND Pipe files to COMMAND" | ||
836 | //usage: ) | ||
837 | //usage: ) | ||
823 | //usage: | 838 | //usage: |
824 | //usage:#define tar_example_usage | 839 | //usage:#define tar_example_usage |
825 | //usage: "$ zcat /tmp/tarball.tar.gz | tar -xf -\n" | 840 | //usage: "$ zcat /tmp/tarball.tar.gz | tar -xf -\n" |
826 | //usage: "$ tar -cf /tmp/tarball.tar /usr/local\n" | 841 | //usage: "$ tar -cf /tmp/tarball.tar /usr/local\n" |
827 | 842 | ||
828 | // Supported but aren't in --help: | ||
829 | // lzma | ||
830 | // no-recursion | ||
831 | // numeric-owner | ||
832 | // no-same-permissions | ||
833 | // overwrite | ||
834 | //IF_FEATURE_TAR_TO_COMMAND( | ||
835 | // to-command | ||
836 | //) | ||
837 | |||
838 | enum { | 843 | enum { |
839 | OPTBIT_KEEP_OLD = 8, | 844 | OPTBIT_KEEP_OLD = 8, |
840 | IF_FEATURE_TAR_CREATE( OPTBIT_CREATE ,) | 845 | IF_FEATURE_TAR_CREATE( OPTBIT_CREATE ,) |