From: Christopher Larson Date: Wed, 27 Apr 2016 23:24:01 +0000 (-0700) Subject: scripts/lib/argparse_oe: also change 'positional arguments' to 'arguments' X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~26031 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a1cd471210e5fb77952f28172084bf6a4fb73e8;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/argparse_oe.py b/scripts/lib/argparse_oe.py index 2185a66cd8d..bf6eb17197b 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):