1
Fork 0
mirror of https://github.com/RGBCube/superfreq synced 2025-07-27 17:07:44 +00:00

cli: remove governor_persist

This commit is contained in:
RGBCube 2025-05-18 23:17:49 +03:00
parent d0932ae78c
commit baef8af981
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -8,7 +8,7 @@ mod monitor;
mod power_supply; mod power_supply;
mod util; mod util;
use anyhow::{Context, anyhow, bail}; use anyhow::Context;
use clap::Parser as _; use clap::Parser as _;
use std::fmt::Write as _; use std::fmt::Write as _;
use std::io::Write as _; use std::io::Write as _;
@ -43,10 +43,6 @@ enum Command {
#[arg(long)] #[arg(long)]
governor: Option<String>, // TODO: Validate with clap for available governors. governor: Option<String>, // TODO: Validate with clap for available governors.
/// Set the CPU governor persistently.
#[arg(long, conflicts_with = "governor")]
governor_persist: Option<String>, // TODO: Validate with clap for available governors.
/// Set CPU Energy Performance Preference (EPP). Short form: --epp. /// Set CPU Energy Performance Preference (EPP). Short form: --epp.
#[arg(long, alias = "epp")] #[arg(long, alias = "epp")]
energy_performance_preference: Option<String>, energy_performance_preference: Option<String>,
@ -103,7 +99,6 @@ fn real_main() -> anyhow::Result<()> {
Command::Set { Command::Set {
for_, for_,
governor, governor,
governor_persist,
energy_performance_preference, energy_performance_preference,
energy_performance_bias, energy_performance_bias,
frequency_mhz_minimum, frequency_mhz_minimum,