-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: using crate's version instead of static one
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { | ||
|
@@ -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( | ||
|