Skip to content

Commit

Permalink
Add a real_kwargs parameter, without default values filled in
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemartinlogan committed Sep 21, 2023
1 parent 7bae948 commit 18bb668
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jarvis_util/util/argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def __init__(self, args=None, exit_on_fail=True, **custom_info):
self.menu = None
self.menu_name = None
self.kwargs = {}
self.real_kwargs = {}
self.define_options()
self._parse()

Expand Down Expand Up @@ -190,6 +191,7 @@ def _parse(self):
default_args = self.default_kwargs(
list(self.menu['kw_opts'].values()) + self.menu['pos_opts'])
default_args.update(self.kwargs)
self.real_kwargs = self.kwargs
self.kwargs = default_args

@staticmethod
Expand Down

0 comments on commit 18bb668

Please sign in to comment.