no- + fullname == false

This commit is contained in:
2019-07-30 21:50:48 +02:00
parent 57e85b49eb
commit 74215a6f80
2 changed files with 33 additions and 3 deletions

View File

@ -20,7 +20,7 @@ from gettext import gettext as _
try:
from tiramisu import Config
from tiramisu.error import PropertiesOptionError, RequirementError, LeadershipError
except ModuleNotFoundError:
except (ModuleNotFoundError, ImportError):
Config = None
from tiramisu_api.error import PropertiesOptionError
RequirementError = PropertiesOptionError
@ -164,10 +164,12 @@ class _BuildKwargs:
is_short_name = self.cmdlineparser._is_short_name(name, 'longargument' in self.properties)
if self.force_no:
ga_name = self.gen_argument_name(name, is_short_name)
self.cmdlineparser.namespace.list_force_no[ga_name] = option.path()
ga_path = self.gen_argument_name(option.path(), is_short_name)
self.cmdlineparser.namespace.list_force_no[ga_path] = option.path()
elif self.force_del:
ga_name = self.gen_argument_name(name, is_short_name)
self.cmdlineparser.namespace.list_force_del[ga_name] = option.path()
ga_path = self.gen_argument_name(option.path(), is_short_name)
self.cmdlineparser.namespace.list_force_del[ga_path] = option.path()
else:
ga_name = name
self.kwargs['dest'] = self.gen_argument_name(option.path(), False)