Mercurial > python-cmd2
comparison cmd2.py @ 289:327ace491fa9
oops, had to fix a reference to newFunc
author | catherine@bothari |
---|---|
date | Thu, 29 Oct 2009 16:17:58 -0400 |
parents | e743cf74c518 |
children | cd12e4e0fa17 |
comparison
equal
deleted
inserted
replaced
288:e743cf74c518 | 289:327ace491fa9 |
---|---|
139 terminator, arg.parsed.suffix)) | 139 terminator, arg.parsed.suffix)) |
140 else: | 140 else: |
141 arg = newArgs | 141 arg = newArgs |
142 result = func(instance, arg, opts) | 142 result = func(instance, arg, opts) |
143 return result | 143 return result |
144 newFunc.__doc__ = '%s\n%s' % (func.__doc__, optionParser.format_help()) | 144 new_func.__doc__ = '%s\n%s' % (func.__doc__, optionParser.format_help()) |
145 return new_func | 145 return new_func |
146 return option_setup | 146 return option_setup |
147 | 147 |
148 class PasteBufferError(EnvironmentError): | 148 class PasteBufferError(EnvironmentError): |
149 if sys.platform[:3] == 'win': | 149 if sys.platform[:3] == 'win': |