From 37ae69c2c679ca3a5ac6fc024c9be970660cc600 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 18 Dec 2024 18:49:53 +0100 Subject: [PATCH] Added missing types to arguments --- src/fm_feed.py | 10 ++++++++-- src/fm_feed_wav.py | 18 ++++++++++++++---- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/src/fm_feed.py b/src/fm_feed.py index 807b337..3ea66fd 100644 --- a/src/fm_feed.py +++ b/src/fm_feed.py @@ -44,13 +44,19 @@ def main(): "--local-addr", help="sender address to use in the UDP frames", required=True ) parser.add_argument( - "--local-port", help="sender port to use in the UDP frames", default=4810 + "--local-port", + help="sender port to use in the UDP frames", + default=4810, + type=int, ) parser.add_argument( "--remote-addr", help="remote address to use in the UDP frames", required=True ) parser.add_argument( - "--remote-port", help="remote port to use in the UDP frames", default=3810 + "--remote-port", + help="remote port to use in the UDP frames", + default=3810, + type=int, ) parser.add_argument( diff --git a/src/fm_feed_wav.py b/src/fm_feed_wav.py index ed688cd..e289b7e 100644 --- a/src/fm_feed_wav.py +++ b/src/fm_feed_wav.py @@ -17,16 +17,26 @@ def main(): ) parser.add_argument( - "--local-addr", help="sender address to use in the UDP frames", required=True + "--local-addr", + help="sender address to use in the UDP frames", + required=True, ) parser.add_argument( - "--local-port", help="sender port to use in the UDP frames", default=4810 + "--local-port", + help="sender port to use in the UDP frames", + default=4810, + type=int, ) parser.add_argument( - "--remote-addr", help="remote address to use in the UDP frames", required=True + "--remote-addr", + help="remote address to use in the UDP frames", + required=True, ) parser.add_argument( - "--remote-port", help="remote port to use in the UDP frames", default=3810 + "--remote-port", + help="remote port to use in the UDP frames", + default=3810, + type=int, ) parser.add_argument(