get path
This commit is contained in:
parent
91a00df905
commit
002e98d801
1 changed files with 5 additions and 3 deletions
|
@ -600,15 +600,17 @@ class TiramisuCmdlineParser(ArgumentParser):
|
|||
else:
|
||||
pass
|
||||
actions.setdefault(option.name(), []).append(kwargs)
|
||||
|
||||
for option_is_not_default in options_is_not_default.values():
|
||||
self._option_is_not_default(**option_is_not_default)
|
||||
for values in actions.values():
|
||||
for value in values:
|
||||
args, kwargs = value.get()
|
||||
group.add_argument(*args, **kwargs)
|
||||
def _valid_mandatory(self):
|
||||
pass
|
||||
|
||||
# def _valid_mandatory(self):
|
||||
# pass
|
||||
#
|
||||
def parse_args(self,
|
||||
*args,
|
||||
valid_mandatory=True,
|
||||
|
@ -617,7 +619,7 @@ class TiramisuCmdlineParser(ArgumentParser):
|
|||
try:
|
||||
namespaces = super().parse_args(*args, **kwargs)
|
||||
except PropertiesOptionError as err:
|
||||
name = err._option_bag.option.impl_getname()
|
||||
name = err._subconfig.path
|
||||
properties = self.config.option(name).property.get()
|
||||
if self.fullpath and 'positional' not in properties:
|
||||
if len(name) == 1 and 'longargument' not in properties:
|
||||
|
|
Loading…
Reference in a new issue