From abe1dd47caf3dc33485192ba01b72a7b89131d4a Mon Sep 17 00:00:00 2001 From: Derek Arnold Date: Sun, 15 Sep 2024 11:36:23 -0500 Subject: [PATCH] add type to argument --- meshtastic/__main__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/meshtastic/__main__.py b/meshtastic/__main__.py index fcfb385..a484eb5 100644 --- a/meshtastic/__main__.py +++ b/meshtastic/__main__.py @@ -275,8 +275,8 @@ def onConnected(interface): # convenient place to store any keyword args we pass to getNode getNode_kwargs = { - "requestChannelRetries": int(args.channel_fetch_retries), - "timeout": int(args.timeout) + "requestChannelRetries": args.channel_fetch_retries, + "timeout": args.timeout } # do not print this line if we are exporting the config @@ -1433,12 +1433,14 @@ def initParser(): "--channel-fetch-retries", help=("Attempt to retrieve channel settings for --ch-set this many times before giving up."), default=3, + type=int, ) group.add_argument( "--timeout", help="How long to wait for replies", - default=300 + default=300, + type=int, ) group.add_argument(