[oe-commits] [openembedded-core] 24/31: scripts/lib/argparse_oe: also change 'positional arguments' to 'arguments'
git at git.openembedded.org
git at git.openembedded.org
Fri Apr 29 08:24:31 UTC 2016
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit a3619f5fffb8ed4cc635ad9999e15c965c989d68
Author: Christopher Larson <chris_larson at mentor.com>
AuthorDate: Wed Apr 27 16:24:01 2016 -0700
scripts/lib/argparse_oe: also change 'positional arguments' to 'arguments'
This aligns with our existing 'optional arguments' to 'options' change, and
seems more intuitive for users.
Signed-off-by: Christopher Larson <chris_larson at mentor.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
scripts/lib/argparse_oe.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/lib/argparse_oe.py b/scripts/lib/argparse_oe.py
index 2185a66..bf6eb17 100644
--- a/scripts/lib/argparse_oe.py
+++ b/scripts/lib/argparse_oe.py
@@ -14,6 +14,7 @@ class ArgumentParser(argparse.ArgumentParser):
kwargs.setdefault('formatter_class', OeHelpFormatter)
self._subparser_groups = OrderedDict()
super(ArgumentParser, self).__init__(*args, **kwargs)
+ self._positionals.title = 'arguments'
self._optionals.title = 'options'
def error(self, message):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list