From 946837f1f4575a595f9dc58ade539a2c94ad13f9 Mon Sep 17 00:00:00 2001 From: Unbewohnte Date: Fri, 18 Mar 2022 07:07:51 +0300 Subject: [PATCH] Print version --- .gitignore | 3 ++- Cargo.lock | 2 +- Cargo.toml | 2 +- src/main.rs | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 40d9aca..f949d1f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /target -/.idea \ No newline at end of file +/.idea +/release \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index 02917bd..36c2d76 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,4 +4,4 @@ version = 3 [[package]] name = "pngrip" -version = "0.1.1" +version = "0.1.2" diff --git a/Cargo.toml b/Cargo.toml index 58a67ac..20e8600 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pngrip" -version = "0.1.1" +version = "0.1.2" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/main.rs b/src/main.rs index a51be9b..9f854ff 100644 --- a/src/main.rs +++ b/src/main.rs @@ -102,7 +102,7 @@ fn rip_png(path: &Path, destination: &Path) { fn main() { let args: Vec = std::env::args().collect(); if args.len() < 3 { - println!("USAGE: pngrip [DESTINATION] [FILES]..."); + println!("pngrip v0.1.2\nUSAGE: pngrip [DESTINATION] [FILES]..."); std::process::exit(0); }