summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGlenn L McGrath2002-12-27 00:45:35 +0000
committerGlenn L McGrath2002-12-27 00:45:35 +0000
commit87444efbabbc817cdcbc1ee8d9ecd8951210512b (patch)
tree268dba7ff9e98f952e883290650430e86fda8c3c /include
parentd4c8d1a97f4554cabb8ae359704336d8adbd0513 (diff)
downloadbusybox-87444efbabbc817cdcbc1ee8d9ecd8951210512b.zip
busybox-87444efbabbc817cdcbc1ee8d9ecd8951210512b.tar.gz
Add usage for tar -j and -z
Diffstat (limited to 'include')
-rw-r--r--include/usage.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/usage.h b/include/usage.h
index 16dd6fd..b568711 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1972,8 +1972,19 @@
#else
#define USAGE_TAR_EXCLUDE(a)
#endif
+#ifdef CONFIG_FEATURE_TAR_GZIP
+ #define USAGE_TAR_GZIP(a) a
+#else
+ #define USAGE_TAR_GZIP(a)
+#endif
+#ifdef CONFIG_FEATURE_TAR_BZIP2
+ #define USAGE_TAR_BZIP2(a) a
+#else
+ #define USAGE_TAR_BZIP2(a)
+#endif
+
#define tar_trivial_usage \
- "-[" USAGE_TAR_CREATE("c") "xtvO] " \
+ "-[" USAGE_TAR_CREATE("c") USAGE_TAR_GZIP("z") USAGE_TAR_BZIP2("j") "xtvO] " \
USAGE_TAR_EXCLUDE("[--exclude FILE] [-X FILE]") \
"[-f TARFILE] [-C DIR] [FILE(s)] ..."
#define tar_full_usage \
@@ -1982,6 +1993,9 @@
USAGE_TAR_CREATE("\tc\t\tcreate\n") \
"\tx\t\textract\n" \
"\tt\t\tlist\n" \
+ "\nArchive format selection:\n" \
+ USAGE_TAR_GZIP("\tz\t\tFilter the archive through gzip\n") \
+ USAGE_TAR_BZIP2("\tj\t\tFilter the archive through bzip2\n") \
"\nFile selection:\n" \
"\tf\t\tname of TARFILE or \"-\" for stdin\n" \
"\tO\t\textract to stdout\n" \