fix default values

This commit is contained in:
Cyberes 2023-04-21 23:54:20 -06:00
parent 01b8586a8d
commit 608a343968
1 changed files with 4 additions and 4 deletions

View File

@ -14,10 +14,10 @@ def main():
https://github.com/tevslin/cloudflarepycli/blob/main/src/cloudflarepycli/__main__.py https://github.com/tevslin/cloudflarepycli/blob/main/src/cloudflarepycli/__main__.py
""" """
parser = argparse.ArgumentParser(description='Check internet speed.') parser = argparse.ArgumentParser(description='Check internet speed.')
parser.add_argument('--warn-up', type=int, default=-1, help='Warn level of upload speed in Mbps.') parser.add_argument('--warn-up', type=int, default=0, help='Warn level of upload speed in Mbps.')
parser.add_argument('--critical-up', type=int, default=-1, help='Critical level of upload speed in Mbps.') parser.add_argument('--critical-up', type=int, default=0, help='Critical level of upload speed in Mbps.')
parser.add_argument('--warn-down', type=int, default=-1, help='Warn level of download speed in Mbps.') parser.add_argument('--warn-down', type=int, default=0, help='Warn level of download speed in Mbps.')
parser.add_argument('--critical-down', type=int, default=-1, help='Critical level of download speed in Mbps.') parser.add_argument('--critical-down', type=int, default=0, help='Critical level of download speed in Mbps.')
parser.add_argument('--warn-latency', type=int, default=60, help='Warn level of latency in ms.') parser.add_argument('--warn-latency', type=int, default=60, help='Warn level of latency in ms.')
parser.add_argument('--critical-latency', type=int, default=100, help='Critical level of latency in ms.') parser.add_argument('--critical-latency', type=int, default=100, help='Critical level of latency in ms.')
args = parser.parse_args() args = parser.parse_args()