From 1b487c96138ac624418c9af542fa4141ca368e92 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 20 May 2019 22:49:22 -0500 Subject: Less incomplete tar help text. --- toys/posix/tar.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/toys/posix/tar.c b/toys/posix/tar.c index 10535f37..e8dc319a 100644 --- a/toys/posix/tar.c +++ b/toys/posix/tar.c @@ -24,18 +24,22 @@ config TAR bool "tar" default y help - usage: tar [-cxtfvohmjkO] [-XT FILE] [-f TARFILE] [-C DIR] + usage: tar [-cxt] [-fvohmjkO] [-XTCf NAME] [FILES] - Create, extract, or list files in a .tar (or compressed t?z) file. + Create, extract, or list files in a .tar (or compressed t?z) file. Options: - c Create x Extract t Test - f Name of TARFILE C Change to DIR first v Verbose: show filenames + c Create x Extract t Test (list) + f tar FILE (default -) C Change to DIR first v Verbose display o Ignore owner h Follow symlinks m Ignore mtime - j bzip2 compression z gzip compression + J xz compression j bzip2 compression z gzip compression O Extract to stdout X exclude names in FILE T include names in FILE - --exclude=FILE File pattern(s) to exclude - --restrict All archive contents must extract under a single subdirctory. + --exclude FILENAME to exclude --full-time show seconds with -tv + --mtime Use TIME for file timestamps --sparse Record sparse files + --owner Set file owner to NAME --group Set file group to NAME + --restrict All archive contents must extract under one subdirctory + --numeric-owner Save/use/display uid and gid, not user/group name + --no-recursion Don't store directory contents */ #define FOR_tar -- cgit v1.2.3