From c8e38309a968f5db442ec381a2ce3e7600e59b5a Mon Sep 17 00:00:00 2001 From: peterrrock2 Date: Tue, 9 Apr 2024 08:45:03 -0600 Subject: [PATCH] Another small bug fix --- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 4 ++-- src/bin/ben.rs | 4 ++-- src/bin/reben.rs | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d4f5c27..611e29d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -58,7 +58,7 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "binary-ensemble" -version = "0.1.2" +version = "0.1.3" dependencies = [ "byteorder", "clap", diff --git a/Cargo.toml b/Cargo.toml index 4f979fc..71b7fc5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "binary-ensemble" -version = "0.1.2" +version = "0.1.3" edition = "2021" authors = ["Peter Rock "] exclude = ["example/"] diff --git a/README.md b/README.md index 1ad3b29..5ff93f3 100644 --- a/README.md +++ b/README.md @@ -50,11 +50,11 @@ ben -m read -n 4 small_example.jsonl # Outputs [1,1,1,2,2,2,3,2,3,1,4,4,4,3,3,4 ``` * XZCompress ``` -ben -m encode small_example.jsonl # Outputs small_example.jsonl.xz +ben -m xz-compress small_example.jsonl # Outputs small_example.jsonl.xz ``` * XZDecompress ``` -ben -m encode small_example.jsonl.xz # Outputs small_example.jsonl +ben -m xz-decompress small_example.jsonl.xz # Outputs small_example.jsonl ``` There is also a `reben` CLI tool that is available through this package, but diff --git a/src/bin/ben.rs b/src/bin/ben.rs index 8fc0f24..4f39b78 100644 --- a/src/bin/ben.rs +++ b/src/bin/ben.rs @@ -25,7 +25,7 @@ enum Mode { #[command( name = "Binary Ensamble CLI Tool", about = "This is a command line tool for encoding and decoding binary ensamble files.", - version = "0.1.2" + version = "0.1.3" )] struct Args { /// Mode to run the program in (encode, decode, or read). @@ -495,7 +495,7 @@ fn main() { .input_file .expect("Must provide input file for xz-decompress mode."); - if in_file_name.ends_with(".xz") { + if !in_file_name.ends_with(".xz") { eprintln!("Error: Unsupported file type for xz decompress mode"); return; } diff --git a/src/bin/reben.rs b/src/bin/reben.rs index d2eaa58..72cde8d 100644 --- a/src/bin/reben.rs +++ b/src/bin/reben.rs @@ -24,7 +24,7 @@ enum Mode { "This is a command line tool for relabeling binary ensambles ", "to help improve compression ratios for BEN and XBEN files." ), - version = "0.1.2" + version = "0.1.3" )] // TODO: Change the name of shape_file to dual_graph_file.