aboutsummaryrefslogtreecommitdiff
path: root/wa/framework
diff options
context:
space:
mode:
authorWaleed El-Geresy <waleed.el-geresy@arm.com>2018-06-14 13:53:21 +0100
committersetrofim <setrofim@gmail.com>2018-06-14 15:06:50 +0100
commit71a32dd724f510a0de44ade1592c1c13368e73b6 (patch)
treea9ad986eea0711fbc50f8b2f655e16ee8c775aed /wa/framework
parent6ee40c217024607d808ca69ea1a6f0f3fa4f1f84 (diff)
framework/command: Fix subparsers in Python3
Make subcommands required arguments in the ComplexCommand class, which is used by the 'wa create' command.
Diffstat (limited to 'wa/framework')
-rw-r--r--wa/framework/command.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/wa/framework/command.py b/wa/framework/command.py
index 7397c794..3a8c7730 100644
--- a/wa/framework/command.py
+++ b/wa/framework/command.py
@@ -111,6 +111,7 @@ class ComplexCommand(Command):
def initialize(self, context):
subparsers = self.parser.add_subparsers(dest='what', metavar='SUBCMD')
+ subparsers.required = True
for subcmd_cls in self.subcmd_classes:
subcmd = subcmd_cls(self.logger, subparsers)
self.subcommands.append(subcmd)