kubo / snzip

Snzip, a compression/decompression tool based on snappy
Other
217 stars 30 forks source link

Added -o path parameter #33

Open aonez opened 5 months ago

aonez commented 5 months ago

Added -o path parameter to specify a custom destination/name for the output file.

Compression examples


# Will output at ./custom_name.tar.sz
snzip -o custom_name.tar.sz archive.tar

# Will output at /some/path/archive.tar.sz
snzip -o /some/path archive.tar

# Will output at /some/path/custom_name.tsz
snzip -o /some/path/custom_name.tsz archive.tar

# Will output at /some/path/no_extension_file
snzip -o /some/path/no_extension_file archive.tar

Uncompression examples


# Will output at ./custom_name.txt
snzip -d -o custom_name.txt archive.txt.sz

# Will output at /some/path/archive.txt
snzip -d -o /some/path archive.txt.sz

# Will output at /some/path/custom_name.txt
snzip -d -o /some/path/custom_name.txt archive.txt.sz

# Will output at /some/path/no_extension_file
snzip -d -o /some/path/no_extension_file archive.txt.sz