diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/options.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/options.rs b/src/options.rs index c35aa276..6d6e712c 100644 --- a/src/options.rs +++ b/src/options.rs @@ -19,7 +19,7 @@ where ); let matches = App::new("bindgen") - .version(env!("CARGO_PKG_VERSION")) + .version(option_env!("CARGO_PKG_VERSION").unwrap_or("unknown")) .about("Generates Rust bindings from C/C++ headers.") .usage("bindgen [FLAGS] [OPTIONS] <header> -- <clang-args>...") .args(&[ |