Skip to content

Commit

Permalink
Change code location for the message when using --config-reload only
Browse files Browse the repository at this point in the history
  • Loading branch information
Angel-Karasu committed Jul 31, 2024
1 parent 13391b6 commit cb887e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auto_cpufreq/bin/auto_cpufreq.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
@click.option("--version", is_flag=True, help="Show currently installed version")
@click.option("--donate", is_flag=True, help="Support the project")
def main(monitor, live, daemon, install, update, remove, force, config, config_reload, stats, get_state, completions, debug, version, donate):
if config_reload and not (monitor or live or daemon): print('Error: Use --config-reload command with --monitor|live|daemon')

if len(sys.argv) == 1:
print("\n" + "-" * 32 + " auto-cpufreq " + "-" * 33 + "\n")
print("Automatic CPU speed & power optimizer for Linux")
Expand All @@ -48,6 +46,8 @@ def main(monitor, live, daemon, install, update, remove, force, config, config_r
not_running_daemon_check()
root_check() # Calling root_check before set_override as it will require sudo access
set_override(force) # Calling set override, only if force has some values

if config_reload and not (monitor or live or daemon): print('Error: Use --config-reload command with --monitor|live|daemon')

if monitor:
root_check()
Expand Down

0 comments on commit cb887e5

Please sign in to comment.