Skip to content

Commit

Permalink
FIX: fix help version
Browse files Browse the repository at this point in the history
  • Loading branch information
alihamraoui committed Sep 18, 2024
1 parent ec1620c commit ab9d0af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/AsaruSim.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit ab9d0af

Please sign in to comment.