ports/devel/py-osprofiler/files/patch-osprofiler_cmd_shell.py
Martin Wilke 5180f7d3f5 - Update to 1.15.2
- Added LICENSE and LICENSE_FILE
- Added DOCS option with appropriate dependencies
- Sorted variables a bit
- Updated WWW and reformatted pkg-descr

PR:`		228683
Submitted by:	freebsd_ports@k-worx.org
Approved by:	maintainer
Sponsored by:	iXsystems Inc.
2018-07-10 09:37:22 +00:00

13 lines
649 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()