Browse Source

fix: help description for arguments with nargs

Signed-off-by: Stephen L. <lrq3000@gmail.com>
pull/90/merge
Stephen L 10 years ago
committed by chriskiehl
parent
commit
2c214e5e82
1 changed files with 1 additions and 1 deletions
  1. 2
      gooey/gui/widgets/components2.py

2
gooey/gui/widgets/components2.py

@ -68,7 +68,7 @@ class BaseGuiComponent(object):
return text
def formatExtendedHelpMsg(self, data):
base_text = data.get('help_msg', '')
base_text = data.get('help', '')
nargs = data['nargs']
if isinstance(nargs, int):
return '{base}\n(Note: exactly {nargs} arguments are required)'.format(base=base_text, nargs=nargs)

Loading…
Cancel
Save