261: More work on demo using Option.__call__() for interactive input

This commit is contained in:
Jason Gerard DeRose
2008-09-04 08:33:41 +00:00
parent 915486dadc
commit 6f95249d52
2 changed files with 9 additions and 4 deletions

View File

@@ -164,7 +164,7 @@ class CLI(object):
print '>>> %s: %s' % (option.name, error)
raw = raw_input(prompt)
try:
value = option(raw)
value = option(raw, **kw)
if value is not None:
kw[option.name] = value
break