|
63 | 63 | argparser.add_argument("-l", "-t", "--list", action="store_true", help="list files only"); |
64 | 64 | argparser.add_argument("-r", "--repack", action="store_true", help="reconcatenate files only fixing checksum errors"); |
65 | 65 | argparser.add_argument("-o", "--output", default=None, help="extract concatenate files to or concatenate output name"); |
66 | | -argparser.add_argument("-compress", "--compress", default="auto", help="extract concatenate files to or concatenate output name"); |
| 66 | +argparser.add_argument("-compression", "--compression", default="auto", help="concatenate files with compression"); |
67 | 67 | getargs = argparser.parse_args(); |
68 | 68 |
|
69 | 69 | should_extract = False; |
|
112 | 112 | if(getargs.verbose): |
113 | 113 | logging.basicConfig(format="%(message)s", stream=sys.stdout, level=logging.DEBUG); |
114 | 114 | if(should_create and not should_extract and not should_list and not should_repack and not should_convert): |
115 | | - pycatfile.PackCatFile(getargs.input, getargs.output, getargs.compress, False, getargs.checksum, getargs.verbose, False); |
| 115 | + pycatfile.PackCatFile(getargs.input, getargs.output, getargs.compression, False, getargs.checksum, getargs.verbose, False); |
116 | 116 | if(should_create and not should_extract and not should_list and not should_repack and should_convert): |
117 | | - pycatfile.PackCatFileFromTarFile(getargs.input, getargs.output, getargs.compress, getargs.checksum, getargs.verbose, False); |
| 117 | + pycatfile.PackCatFileFromTarFile(getargs.input, getargs.output, getargs.compression, getargs.checksum, getargs.verbose, False); |
118 | 118 | if(should_create and not should_extract and not should_list and should_repack and not should_convert): |
119 | | - pycatfile.RePackCatFile(getargs.input, getargs.output, 0, 0, getargs.compress, getargs.checksum, False, getargs.verbose, False); |
| 119 | + pycatfile.RePackCatFile(getargs.input, getargs.output, 0, 0, getargs.compression, getargs.checksum, False, getargs.verbose, False); |
120 | 120 | if(not should_create and should_extract and not should_list): |
121 | 121 | pycatfile.UnPackCatFile(getargs.input, getargs.output, False, getargs.verbose, False); |
122 | 122 | if(not should_create and not should_extract and should_list): |
|
0 commit comments