summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/lib/recipetool/create.py8
-rwxr-xr-xscripts/recipetool6
2 files changed, 8 insertions, 6 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index 38f5eadaf5..290fc1386b 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -406,10 +406,12 @@ def convert_debian(debpath):
406 406
407 407
408def register_command(subparsers): 408def register_command(subparsers):
409 parser_create = subparsers.add_parser('create', help='Create a new recipe') 409 parser_create = subparsers.add_parser('create',
410 help='Create a new recipe',
411 description='Creates a new recipe from a source tree')
410 parser_create.add_argument('source', help='Path or URL to source') 412 parser_create.add_argument('source', help='Path or URL to source')
411 parser_create.add_argument('-o', '--outfile', help='Full path and filename to recipe to add', required=True) 413 parser_create.add_argument('-o', '--outfile', help='Specify filename for recipe to create', required=True)
412 parser_create.add_argument('-m', '--machine', help='Make recipe machine-specific as opposed to architecture-specific', action='store_true') 414 parser_create.add_argument('-m', '--machine', help='Make recipe machine-specific as opposed to architecture-specific', action='store_true')
413 parser_create.add_argument('-x', '--externalsrc', help='Assuming source is a URL, fetch it and extract it to the specified directory') 415 parser_create.add_argument('-x', '--extract-to', metavar='EXTRACTPATH', help='Assuming source is a URL, fetch it and extract it to the directory specified as %(metavar)s')
414 parser_create.set_defaults(func=create_recipe) 416 parser_create.set_defaults(func=create_recipe)
415 417
diff --git a/scripts/recipetool b/scripts/recipetool
index 70e6b6c877..2cfa763201 100755
--- a/scripts/recipetool
+++ b/scripts/recipetool
@@ -49,11 +49,11 @@ def main():
49 sys.exit(1) 49 sys.exit(1)
50 50
51 parser = argparse.ArgumentParser(description="OpenEmbedded recipe tool", 51 parser = argparse.ArgumentParser(description="OpenEmbedded recipe tool",
52 epilog="Use %(prog)s <command> --help to get help on a specific command") 52 epilog="Use %(prog)s <subcommand> --help to get help on a specific command")
53 parser.add_argument('-d', '--debug', help='Enable debug output', action='store_true') 53 parser.add_argument('-d', '--debug', help='Enable debug output', action='store_true')
54 parser.add_argument('-q', '--quiet', help='Print only errors', action='store_true') 54 parser.add_argument('-q', '--quiet', help='Print only errors', action='store_true')
55 parser.add_argument('--color', help='Colorize output', choices=['auto', 'always', 'never'], default='auto') 55 parser.add_argument('--color', choices=['auto', 'always', 'never'], default='auto', help='Colorize output (where %(metavar)s is %(choices)s)', metavar='COLOR')
56 subparsers = parser.add_subparsers() 56 subparsers = parser.add_subparsers(title='subcommands', metavar='<subcommand>')
57 57
58 scriptutils.load_plugins(logger, plugins, os.path.join(scripts_path, 'lib', 'recipetool')) 58 scriptutils.load_plugins(logger, plugins, os.path.join(scripts_path, 'lib', 'recipetool'))
59 registered = False 59 registered = False