Skip to content

Commit

Permalink
Kludge for argparse in Python 3.11
Browse files Browse the repository at this point in the history
Fixes #361
  • Loading branch information
mikegriffin authored Feb 10, 2024
1 parent 502dc66 commit e032de7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions holland/core/command/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ class Command(object):
description = " "

def __init__(self):
if self.name in SUBPARSER.choices:
self.optparser = SUBPARSER.choices[self.name]
return
self.optparser = SUBPARSER.add_parser(
self.name,
help=f"{self.name} {self.description}",
Expand Down

0 comments on commit e032de7

Please sign in to comment.