Fix version string from -V
This commit is contained in:
parent
419fddd6d4
commit
9a6379ac7e
1 changed files with 3 additions and 1 deletions
|
|
@ -7,6 +7,8 @@ use regex::Regex;
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
|
const VERSION_STRING: &'static str = "0.1.1";
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut filter = HashSet::new();
|
let mut filter = HashSet::new();
|
||||||
filter.insert(0);
|
filter.insert(0);
|
||||||
|
|
@ -47,7 +49,7 @@ fn main() {
|
||||||
};
|
};
|
||||||
|
|
||||||
let matches = App::new("oxipng")
|
let matches = App::new("oxipng")
|
||||||
.version("1.0.0-alpha.1")
|
.version(VERSION_STRING)
|
||||||
.author("Joshua Holmer <jholmer.in@gmail.com>")
|
.author("Joshua Holmer <jholmer.in@gmail.com>")
|
||||||
.about("Losslessly improves compression of PNG files")
|
.about("Losslessly improves compression of PNG files")
|
||||||
.arg(Arg::with_name("files")
|
.arg(Arg::with_name("files")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue