cliff.command.Command.__init__() receives different type of app_args
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cliff |
Fix Released
|
Undecided
|
Terry Howe |
Bug Description
The function __init__() of subcommand classes that override cliff.command.
app_args will be an argparse.Namespace object when the classes are instantiated from cliff.app.
On the other hand, app_args will be a list object when the classes are instantiated from cliff.help.
For example, ...
class Subcommand(
def __init__(self, app, app_args):
# When the help command is called,
# the type of 'app_args' will be a list.
if isinstance(
....
I'd like to unify this inconsistent behavior.
Changed in python-cliff: | |
milestone: | none → 1.11.0 |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/155784
Review: https:/