From 9a6379ac7e630e37902976b7430bc85fddcfada6 Mon Sep 17 00:00:00 2001 From: Joshua Holmer Date: Fri, 4 Mar 2016 10:07:43 -0500 Subject: [PATCH] Fix version string from -V --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 7a83a635..0044ea24 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,6 +7,8 @@ use regex::Regex; use std::collections::HashSet; use std::path::PathBuf; +const VERSION_STRING: &'static str = "0.1.1"; + fn main() { let mut filter = HashSet::new(); filter.insert(0); @@ -47,7 +49,7 @@ fn main() { }; let matches = App::new("oxipng") - .version("1.0.0-alpha.1") + .version(VERSION_STRING) .author("Joshua Holmer ") .about("Losslessly improves compression of PNG files") .arg(Arg::with_name("files")