Skip to content

Commit

Permalink
fix version getting in bindings
Browse files Browse the repository at this point in the history
Signed-off-by: Lîm Tsú-thuàn <[email protected]>
  • Loading branch information
dannypsnl committed Mar 21, 2023
1 parent 33f881b commit c25bff5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bindings/rust/invoke-witc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ fn name_value_meta(meta: &Meta) -> (String, String) {
}

fn check_version() {
let ver_output = Command::new("witc-exe").args(["version"]).output().unwrap();
let ver_output = Command::new("witc-exe")
.args(["--version"])
.output()
.unwrap();
let ver = String::from_utf8(ver_output.stdout).unwrap();
if ver != "0.2.0\n" {
panic!("witc-exe version mismatch: expected 0.2.0, got {}", ver);
Expand Down

0 comments on commit c25bff5

Please sign in to comment.