Skip to content

Commit

Permalink
Version
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Aug 29, 2020
1 parent af4047a commit cbd901d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ Options:
fn run() -> Result<(), BoxError> {
let mut args = pico_args::Arguments::from_env();

if args.contains("--version") {
println!("cavif {}", env!("CARGO_PKG_VERSION"));
std::process::exit(0);
}

if args.contains(["-h", "--help"]) {
help();
std::process::exit(0);
Expand Down

0 comments on commit cbd901d

Please sign in to comment.