[gnome-continuous-yocto/gnomeostree-3.28-rocko: 87/8267] scripts/lib/argparse_oe: also change 'positional arguments' to 'arguments'

commit a78e4ade1fc6156bb7d1fef58b80cd8c859a8902
Author: Christopher Larson <chris_larson mentor com>
Date:   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.
    (From OE-Core rev: 8a1cd471210e5fb77952f28172084bf6a4fb73e8)
    Signed-off-by: Christopher Larson <chris_larson mentor com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 scripts/lib/argparse_oe.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
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):

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]