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