setup.py
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
from .api import TiramisuCmdlineParser
|
||||
|
||||
__version__ = "0.0.1"
|
||||
__version__ = "0.1"
|
||||
__all__ = ('TiramisuCmdlineParser',)
|
||||
|
@ -154,7 +154,10 @@ class _BuildKwargs:
|
||||
self.force_no = force_no
|
||||
self.force_del = force_del
|
||||
if not self.force_no and not self.force_del:
|
||||
self.kwargs['help'] = option.doc().replace('%', '%%')
|
||||
description = option.doc()
|
||||
if not description:
|
||||
description = description.replace('%', '%%')
|
||||
self.kwargs['help'] = description
|
||||
if 'positional' not in self.properties:
|
||||
is_short_name = self.cmdlineparser._is_short_name(name, 'longargument' in self.properties)
|
||||
if self.force_no:
|
||||
@ -335,7 +338,7 @@ class TiramisuCmdlineParser(ArgumentParser):
|
||||
continue
|
||||
if obj.option.isoptiondescription():
|
||||
if _forhelp:
|
||||
newgroup = self.add_argument_group(obj.option.path(), obj.option.doc())
|
||||
newgroup = self.add_argument_group(obj.option.path(), obj.option.description())
|
||||
else:
|
||||
newgroup = group
|
||||
if prefix:
|
||||
|
Reference in New Issue
Block a user