diff options
author | Jack Lloyd <[email protected]> | 2016-01-04 03:14:33 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-01-04 03:14:33 -0500 |
commit | c8c0a9cf6c8e1b2e20d6f537ac68aea5b28c9443 (patch) | |
tree | adb304ba79d6130c812b9fb83949585169b19293 /src/cli/compress.cpp | |
parent | b2722fd321dcefcfc7111cc8185bb9cdc3f5e112 (diff) |
Fixes for compress cli util
Missing . in compression extension, wrong name for buf-size option
Diffstat (limited to 'src/cli/compress.cpp')
-rw-r--r-- | src/cli/compress.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/cli/compress.cpp b/src/cli/compress.cpp index 1b7d67e57..0d29dc180 100644 --- a/src/cli/compress.cpp +++ b/src/cli/compress.cpp @@ -64,7 +64,7 @@ class Compress : public Command throw CLI_Error_Unsupported("Compressing", comp_type); } - return input_fsname + suffix_info->second; + return input_fsname + "." + suffix_info->second; } void go() override @@ -97,7 +97,7 @@ class Compress : public Command throw CLI_IO_Error("writing", out_file); } - do_compress(*compress, in, out, get_arg_sz("buf_size")); + do_compress(*compress, in, out, get_arg_sz("buf-size")); } }; @@ -106,7 +106,7 @@ BOTAN_REGISTER_COMMAND("compress", Compress); class Decompress : public Command { public: - Decompress() : Command("decompress file") {} + Decompress() : Command("decompress --buf-size=8192 file") {} void parse_extension(const std::string& in_file, std::string& out_file, @@ -144,8 +144,7 @@ class Decompress : public Command if(!out.good()) throw CLI_IO_Error("writing", out_file); - do_compress(*decompress, in, out, get_arg_sz("buf_size")); - + do_compress(*decompress, in, out, get_arg_sz("buf-size")); } }; |