comparison cmd2.py @ 389:be4194f41916

before jens bundle
author catherine.devlin@gmail.com
date Wed, 07 Jul 2010 19:24:15 -0400
parents 2594f69698b2
children 9f9c69fbb78f
comparison
equal deleted inserted replaced
388:52ab96d4f179 389:be4194f41916
97 97
98 options_defined = [] # used to distinguish --options from SQL-style --comments 98 options_defined = [] # used to distinguish --options from SQL-style --comments
99 99
100 def options(option_list): 100 def options(option_list):
101 '''Used as a decorator and passed a list of optparse-style options, 101 '''Used as a decorator and passed a list of optparse-style options,
102 alters a cmd2 methodo populate its ``opts`` argument from its 102 alters a cmd2 method to populate its ``opts`` argument from its
103 raw text argument. 103 raw text argument.
104 104
105 Example: transform 105 Example: transform
106 def do_something(self, arg): 106 def do_something(self, arg):
107 107