We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfe9db6 commit a4271e5Copy full SHA for a4271e5
1 file changed
watt/lib.rs
@@ -13,7 +13,6 @@ pub mod config;
13
pub mod daemon;
14
15
#[derive(clap::Parser, Debug)]
16
-#[clap(author, version, about)]
17
pub struct Cli {
18
#[clap(subcommand)]
19
command: Command,
@@ -51,19 +50,22 @@ pub enum Command {
51
50
}
52
53
+#[clap(version)]
54
pub struct WattCommand {
55
/// The daemon config path.
56
#[arg(long, env = "WATT_CONFIG")]
57
config: Option<PathBuf>,
58
59
60
61
62
pub enum CpuCommand {
63
/// Modify CPU attributes.
64
Set(config::CpuDelta),
65
66
67
68
69
pub enum PowerCommand {
70
/// Modify power supply attributes.
71
Set(config::PowerDelta),
0 commit comments