mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
recipetool: improve command-line help
Based on feedback from Scott Rifenbark <scott.m.rifenbark@intel.com> (From OE-Core rev: 2c59b2b20c32577085645056e4cbf4f9c259e4d7) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
943353707b
commit
a3dfb70b62
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user