Commit b30249e
authored
tar: fail early for bad options (#978)
* tar: fail early for bad options
* Add missing getopts() return value check
* This version of tar didn't have a usage string, so add one
* Don't list -c in usage string for now because archive creation isn't implemented
* Unconditionally use Compress::Zlib because it is a core library
* lazy import for compression feature1 parent 0fd0e9c commit b30249e
1 file changed
+6
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | 23 | | |
26 | 24 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 25 | | |
43 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
44 | 30 | | |
45 | 31 | | |
46 | 32 | | |
| |||
225 | 211 | | |
226 | 212 | | |
227 | 213 | | |
228 | | - | |
| 214 | + | |
| 215 | + | |
229 | 216 | | |
230 | 217 | | |
231 | 218 | | |
| |||
0 commit comments