summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-02-19 22:38:54 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-21 09:32:00 +0000
commit55e675de6191bf7eccd26df29189f2a6faa40a20 (patch)
tree8c799e527b877503da9723d3808f5e4b67b38a61
parente1b9d31e6ea3c254ecfe940fe795af44761e0e69 (diff)
downloadopenembedded-core-contrib-55e675de6191bf7eccd26df29189f2a6faa40a20.tar.gz
openembedded-core-contrib-55e675de6191bf7eccd26df29189f2a6faa40a20.tar.bz2
openembedded-core-contrib-55e675de6191bf7eccd26df29189f2a6faa40a20.zip
scripts/lib/argparse_oe: tweak title above options
Naming these as "optional arguments" is perhaps slightly confusing since some of the positional arguments might also be optional; in addition it's rare (though possible) for options to be mandatory - up until recently we had a recipetool option (-o) that was mandatory. It's not perfect, but change it to "options" so it's at least a bit more appropriate. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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):
if 'order' in kwargs:
self._order = kwargs.pop('order')
super(ArgumentSubParser, self).__init__(*args, **kwargs)
+ for agroup in self._action_groups:
+ if agroup.title == 'optional arguments':
+ agroup.title = 'options'
+ break
def parse_known_args(self, args=None, namespace=None):
# This works around argparse not handling optional positional arguments being