From cbd901df8220dc4f155ab6aac3d9a727a1a4ea69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kornel=20Lesi=C5=84ski?= Date: Sat, 29 Aug 2020 18:00:28 +0100 Subject: [PATCH] Version --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.rs b/src/main.rs index 6c9db04..823e97c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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);