diff options
Diffstat (limited to 'tar.c')
-rw-r--r-- | tar.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -37,8 +37,8 @@ | |||
37 | 37 | ||
38 | 38 | ||
39 | static const char tar_usage[] = | 39 | static const char tar_usage[] = |
40 | "Create, extract, or list files from a TAR file\n\n" | 40 | "tar -[cxtvOf] [tarFileName] [FILE] ...\n" |
41 | "usage: tar -[cxtvOf] [tarFileName] [FILE] ...\n" | 41 | "Create, extract, or list files from a tar file\n\n" |
42 | "\tc=create, x=extract, t=list contents, v=verbose,\n" | 42 | "\tc=create, x=extract, t=list contents, v=verbose,\n" |
43 | "\tO=extract to stdout, f=tarfile or \"-\" for stdin\n"; | 43 | "\tO=extract to stdout, f=tarfile or \"-\" for stdin\n"; |
44 | 44 | ||
@@ -151,10 +151,8 @@ extern int tar_main (int argc, char **argv) | |||
151 | argc--; | 151 | argc--; |
152 | argv++; | 152 | argv++; |
153 | 153 | ||
154 | if (argc < 1) { | 154 | if (argc < 1) |
155 | fprintf (stderr, "%s", tar_usage); | 155 | usage( tar_usage); |
156 | exit (FALSE); | ||
157 | } | ||
158 | 156 | ||
159 | 157 | ||
160 | errorFlag = FALSE; | 158 | errorFlag = FALSE; |