summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/lib/argparse_oe.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lib/argparse_oe.py b/scripts/lib/argparse_oe.py
index 744cfe312f..bf3ebaddfd 100644
--- a/scripts/lib/argparse_oe.py
+++ b/scripts/lib/argparse_oe.py
@@ -51,6 +51,10 @@ class ArgumentSubParser(ArgumentParser):
51 if 'order' in kwargs: 51 if 'order' in kwargs:
52 self._order = kwargs.pop('order') 52 self._order = kwargs.pop('order')
53 super(ArgumentSubParser, self).__init__(*args, **kwargs) 53 super(ArgumentSubParser, self).__init__(*args, **kwargs)
54 for agroup in self._action_groups:
55 if agroup.title == 'optional arguments':
56 agroup.title = 'options'
57 break
54 58
55 def parse_known_args(self, args=None, namespace=None): 59 def parse_known_args(self, args=None, namespace=None):
56 # This works around argparse not handling optional positional arguments being 60 # This works around argparse not handling optional positional arguments being