Skip to content

Commit

Permalink
chore: using crate's version instead of static one
Browse files Browse the repository at this point in the history
  • Loading branch information
bpetit committed Dec 22, 2020
1 parent 53fe472 commit 869a576
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Generic sensor and transmission agent for energy consumption related metrics.
use clap::{App, AppSettings, Arg, SubCommand};
use clap::{crate_version, App, AppSettings, Arg, SubCommand};
use scaphandre::{get_exporters_options, run};

fn main() {
Expand All @@ -13,6 +13,7 @@ fn main() {
let mut matches = App::new("scaphandre")
.author("Benoit Petit <[email protected]>")
.version("0.1.0")
.long_version(crate_version!())
.about("Extensible metrology agent for energy/electricity consumption related metrics")
.setting(AppSettings::SubcommandRequiredElseHelp)
.arg(
Expand Down

0 comments on commit 869a576

Please sign in to comment.