Skip to content

Commit a4271e5

Browse files
committed
cli: add --version to multicall commands
1 parent bfe9db6 commit a4271e5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

watt/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ pub mod config;
1313
pub mod daemon;
1414

1515
#[derive(clap::Parser, Debug)]
16-
#[clap(author, version, about)]
1716
pub struct Cli {
1817
#[clap(subcommand)]
1918
command: Command,
@@ -51,19 +50,22 @@ pub enum Command {
5150
}
5251

5352
#[derive(clap::Parser, Debug)]
53+
#[clap(version)]
5454
pub struct WattCommand {
5555
/// The daemon config path.
5656
#[arg(long, env = "WATT_CONFIG")]
5757
config: Option<PathBuf>,
5858
}
5959

6060
#[derive(clap::Parser, Debug)]
61+
#[clap(version)]
6162
pub enum CpuCommand {
6263
/// Modify CPU attributes.
6364
Set(config::CpuDelta),
6465
}
6566

6667
#[derive(clap::Parser, Debug)]
68+
#[clap(version)]
6769
pub enum PowerCommand {
6870
/// Modify power supply attributes.
6971
Set(config::PowerDelta),

0 commit comments

Comments
 (0)