summaryrefslogtreecommitdiffstats
path: root/scripts/recipetool
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-02-05 14:04:00 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-07 18:52:45 +0000
commit2c59b2b20c32577085645056e4cbf4f9c259e4d7 (patch)
tree34ed9909bcace2319c9f23f53bb5f8592d0efb6b /scripts/recipetool
parentec3378f3a7013e289daa0f5c52329488b861f99c (diff)
downloadopenembedded-core-2c59b2b20c32577085645056e4cbf4f9c259e4d7.tar.gz
recipetool: improve command-line help
Based on feedback from Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/recipetool')
-rwxr-xr-xscripts/recipetool6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/recipetool b/scripts/recipetool
index 70e6b6c877..2cfa763201 100755
--- a/scripts/recipetool
+++ b/scripts/recipetool
@@ -49,11 +49,11 @@ def main():
sys.exit(1)
parser = argparse.ArgumentParser(description="OpenEmbedded recipe tool",
- epilog="Use %(prog)s <command> --help to get help on a specific command")
+ epilog="Use %(prog)s <subcommand> --help to get help on a specific command")
parser.add_argument('-d', '--debug', help='Enable debug output', action='store_true')
parser.add_argument('-q', '--quiet', help='Print only errors', action='store_true')
- parser.add_argument('--color', help='Colorize output', choices=['auto', 'always', 'never'], default='auto')
- subparsers = parser.add_subparsers()
+ parser.add_argument('--color', choices=['auto', 'always', 'never'], default='auto', help='Colorize output (where %(metavar)s is %(choices)s)', metavar='COLOR')
+ subparsers = parser.add_subparsers(title='subcommands', metavar='<subcommand>')
scriptutils.load_plugins(logger, plugins, os.path.join(scripts_path, 'lib', 'recipetool'))
registered = False