mirror of
https://github.com/unixtensor/proxmox-ntfy.git
synced 2025-06-28 12:48:06 +00:00
Everything is split into modules and put into classes where inheritance is needed
This commit is contained in:
10
src/cli.py
Normal file
10
src/cli.py
Normal file
@ -0,0 +1,10 @@
|
||||
import argparse
|
||||
|
||||
def interface():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--server", required=True, help="")
|
||||
parser.add_argument("--cpu-temp-critical", type=int, default=80, help="cpu tempature crtitical. default = 80")
|
||||
parser.add_argument("--cpu-temp-warning", type=int, default=70, help="cpu tempature warning. default = 70")
|
||||
parser.add_argument("--update-rate", type=int, default=1, help="how often updates happen in seconds. default = 1")
|
||||
|
||||
return parser.parse_args()
|
Reference in New Issue
Block a user