From ab9d0af44c485a4772e5318ff6ad57000aef87cf Mon Sep 17 00:00:00 2001 From: alihamraoui Date: Wed, 18 Sep 2024 14:55:55 +0200 Subject: [PATCH] FIX: fix help version --- bin/AsaruSim.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/AsaruSim.py b/bin/AsaruSim.py index 8eda900..ed1b1ab 100644 --- a/bin/AsaruSim.py +++ b/bin/AsaruSim.py @@ -7,13 +7,14 @@ def setup_parent_parser(): parent_parser = argparse.ArgumentParser(add_help=False) parent_parser.add_argument('--debug', action='store_true', help='Enable debug mode') - parent_parser.add_argument('--version', action='version', version=version.__version__) return parent_parser def main(): parent_parser = setup_parent_parser() + main_parser = argparse.ArgumentParser() + main_parser.add_argument('--version', action='version', version=version.__version__) subparsers = main_parser.add_subparsers(title="command", dest="command", required=True)