ports/devel/py-osprofiler/files/patch-osprofiler_cmd_shell.py
Sunpoet Po-Chuan Hsieh 64f80dad6f Update to 3.4.0
- Sort RUN_DEPENDS
- Update pkg-descr
- Update WWW
- Take maintainership

Changes:	https://docs.openstack.org/osprofiler/latest/user/history.html
2020-09-13 19:45:18 +00:00

13 lines
656 B
Python

--- osprofiler/cmd/shell.py.orig 2018-03-14 17:31:26 UTC
+++ osprofiler/cmd/shell.py
@@ -54,7 +54,9 @@ class OSProfilerShell(object):
return parser
def _append_subcommands(self, parent_parser):
- subcommands = parent_parser.add_subparsers(help="<subcommands>")
+ # Fix CLI for Python 3.x
+ subcommands = parent_parser.add_subparsers(help="<subcommands>", dest="too few arguments")
+ subcommands.required = True
for group_cls in commands.BaseCommand.__subclasses__():
group_parser = subcommands.add_parser(group_cls.group_name)
subcommand_parser = group_parser.add_subparsers()