mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 15:36:35 -04:00
- 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.
13 lines
649 B
Python
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()
|