284: Removed depreciated Command.Option property; removed corresponding unit tests; updated affected code

This commit is contained in:
Jason Gerard DeRose
2008-09-10 15:31:34 +00:00
parent bde377a2da
commit 687f603562
3 changed files with 8 additions and 35 deletions

View File

@@ -228,7 +228,7 @@ class CLI(object):
parser = optparse.OptionParser(
usage=self.get_usage(cmd),
)
for option in cmd.Option():
for option in cmd.options():
parser.add_option('--%s' % to_cli(option.name),
metavar=option.type.name.upper(),
help=option.doc,