From 962b2f5dc6ed0d8b05671f1ade092407ed6251cd Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Sun, 25 Feb 2024 09:51:24 -0600 Subject: [PATCH] Use better --version --- wyoming_satellite/__main__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wyoming_satellite/__main__.py b/wyoming_satellite/__main__.py index 9bcb284..ed29a6f 100644 --- a/wyoming_satellite/__main__.py +++ b/wyoming_satellite/__main__.py @@ -261,6 +261,12 @@ async def main() -> None: parser.add_argument( "--log-format", default=logging.BASIC_FORMAT, help="Format for log messages" ) + parser.add_argument( + "--version", + action="version", + version=__version__, + help="Print version and exit", + ) args = parser.parse_args() # Validate args