mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
284: Removed depreciated Command.Option property; removed corresponding unit tests; updated affected code
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user