help with modified argument
This commit is contained in:
@ -180,10 +180,15 @@ class TiramisuCmdlineParser(ArgumentParser):
|
||||
properties = obj.property.get()
|
||||
kwargs = {'help': option.doc().replace('%', '%%')}
|
||||
if option.issymlinkoption():
|
||||
actions[option.name(follow_symlink=True)][0].insert(0, self._gen_argument(option.name(), properties))
|
||||
symlink_name = option.name(follow_symlink=True)
|
||||
if symlink_name in actions:
|
||||
actions[symlink_name][0].insert(0, self._gen_argument(option.name(), properties))
|
||||
continue
|
||||
if _forhelp and not obj.owner.isdefault() and obj.value.get():
|
||||
self.prog += ' {}'.format(obj.value.get())
|
||||
if 'positional' not in properties:
|
||||
self.prog += ' {}'.format(self._gen_argument(name, properties))
|
||||
if option.type() != 'boolean':
|
||||
self.prog += ' {}'.format(obj.value.get())
|
||||
else:
|
||||
if 'positional' in properties:
|
||||
if not 'mandatory' in properties:
|
||||
|
Reference in New Issue
Block a user