Skip to content

Commit

Permalink
Use crate_version! for clap
Browse files Browse the repository at this point in the history
  • Loading branch information
subnomo committed Sep 17, 2020
1 parent 0bcd648 commit eba3dc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use clap::{App, Arg};
use clap::{crate_version, App, Arg};
use indicatif::ProgressBar;
use regex::Regex;
use std::env;
Expand Down Expand Up @@ -28,7 +28,7 @@ fn cli() -> Arguments {
let env_key = env::var("TUMBLR_API_KEY");

let matches = App::new("tumblr-likes")
.version("0.3.3")
.version(crate_version!())
.author("Alex Taylor <alex@alext.xyz>")
.about("Downloads your liked photos and videos on Tumblr.")
.arg(
Expand Down

0 comments on commit eba3dc4

Please sign in to comment.