summaryrefslogtreecommitdiffstats
path: root/scripts/lib
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-08 08:00:27 +0000
commita3dfb70b62bcb7c0a94136abbe589ffc8715c6b5 (patch)
treede09b7bbfac4989406033ea27fb93b682ea09d8a /scripts/lib
parent943353707bb61ab5e45ee0efb8fd0b8e5a0bce52 (diff)
downloadpoky-a3dfb70b62bcb7c0a94136abbe589ffc8715c6b5.tar.gz
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>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/recipetool/create.py8
1 files changed, 5 insertions, 3 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