Skip to content

Commit

Permalink
Another small bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
peterrrock2 committed Apr 9, 2024
1 parent f46b47a commit c8e3830
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "binary-ensemble"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
authors = ["Peter Rock <peter.r.rock2@gmail.com>"]
exclude = ["example/"]
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/bin/ben.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/bin/reben.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c8e3830

Please sign in to comment.