summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-03-04 12:46:29 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-20 11:27:43 +0000
commite3cfb80f1e5df809663ec2cd63171e6fe7f78c04 (patch)
tree0051307b623ed234628b5ac4b5fadd1ec77ae9e9 /scripts
parent4424440f42a537772e9505457a78bfe6a957ce2d (diff)
downloadpoky-e3cfb80f1e5df809663ec2cd63171e6fe7f78c04.tar.gz
devtool: name command line parsers appropriately
No functional changes, just use a unique name for each parser. (From OE-Core rev: 5fabc59d6221c3fe7137b70e31ec2761a4276a6c) 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')
-rw-r--r--scripts/lib/devtool/standard.py44
1 files changed, 22 insertions, 22 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index cabf3feaf3..435878cef9 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -1,6 +1,6 @@
1# Development tool - standard commands plugin 1# Development tool - standard commands plugin
2# 2#
3# Copyright (C) 2014 Intel Corporation 3# Copyright (C) 2014-2015 Intel Corporation
4# 4#
5# This program is free software; you can redistribute it and/or modify 5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License version 2 as 6# it under the terms of the GNU General Public License version 2 as
@@ -602,33 +602,33 @@ def register_commands(subparsers, context):
602 parser_add.add_argument('--version', '-V', help='Version to use within recipe (PV)') 602 parser_add.add_argument('--version', '-V', help='Version to use within recipe (PV)')
603 parser_add.set_defaults(func=add) 603 parser_add.set_defaults(func=add)
604 604
605 parser_add = subparsers.add_parser('modify', help='Modify the source for an existing recipe', 605 parser_modify = subparsers.add_parser('modify', help='Modify the source for an existing recipe',
606 description='Enables modifying the source for an existing recipe', 606 description='Enables modifying the source for an existing recipe',
607 formatter_class=argparse.ArgumentDefaultsHelpFormatter) 607 formatter_class=argparse.ArgumentDefaultsHelpFormatter)
608 parser_add.add_argument('recipename', help='Name for recipe to edit') 608 parser_modify.add_argument('recipename', help='Name for recipe to edit')
609 parser_add.add_argument('srctree', help='Path to external source tree') 609 parser_modify.add_argument('srctree', help='Path to external source tree')
610 parser_add.add_argument('--wildcard', '-w', action="store_true", help='Use wildcard for unversioned bbappend') 610 parser_modify.add_argument('--wildcard', '-w', action="store_true", help='Use wildcard for unversioned bbappend')
611 parser_add.add_argument('--extract', '-x', action="store_true", help='Extract source as well') 611 parser_modify.add_argument('--extract', '-x', action="store_true", help='Extract source as well')
612 parser_add.add_argument('--same-dir', '-s', help='Build in same directory as source', action="store_true") 612 parser_modify.add_argument('--same-dir', '-s', help='Build in same directory as source', action="store_true")
613 parser_add.add_argument('--branch', '-b', default="devtool", help='Name for development branch to checkout (only when using -x)') 613 parser_modify.add_argument('--branch', '-b', default="devtool", help='Name for development branch to checkout (only when using -x)')
614 parser_add.set_defaults(func=modify) 614 parser_modify.set_defaults(func=modify)
615 615
616 parser_add = subparsers.add_parser('extract', help='Extract the source for an existing recipe', 616 parser_extract = subparsers.add_parser('extract', help='Extract the source for an existing recipe',
617 description='Extracts the source for an existing recipe', 617 description='Extracts the source for an existing recipe',
618 formatter_class=argparse.ArgumentDefaultsHelpFormatter) 618 formatter_class=argparse.ArgumentDefaultsHelpFormatter)
619 parser_add.add_argument('recipename', help='Name for recipe to extract the source for') 619 parser_extract.add_argument('recipename', help='Name for recipe to extract the source for')
620 parser_add.add_argument('srctree', help='Path to where to extract the source tree') 620 parser_extract.add_argument('srctree', help='Path to where to extract the source tree')
621 parser_add.add_argument('--branch', '-b', default="devtool", help='Name for development branch to checkout') 621 parser_extract.add_argument('--branch', '-b', default="devtool", help='Name for development branch to checkout')
622 parser_add.add_argument('--keep-temp', action="store_true", help='Keep temporary directory (for debugging)') 622 parser_extract.add_argument('--keep-temp', action="store_true", help='Keep temporary directory (for debugging)')
623 parser_add.set_defaults(func=extract) 623 parser_extract.set_defaults(func=extract)
624 624
625 parser_add = subparsers.add_parser('update-recipe', help='Apply changes from external source tree to recipe', 625 parser_update_recipe = subparsers.add_parser('update-recipe', help='Apply changes from external source tree to recipe',
626 description='Applies changes from external source tree to a recipe (updating/adding/removing patches as necessary, or by updating SRCREV)') 626 description='Applies changes from external source tree to a recipe (updating/adding/removing patches as necessary, or by updating SRCREV)')
627 parser_add.add_argument('recipename', help='Name of recipe to update') 627 parser_update_recipe.add_argument('recipename', help='Name of recipe to update')
628 parser_add.add_argument('--mode', '-m', choices=['patch', 'srcrev', 'auto'], default='auto', help='Update mode (where %(metavar)s is %(choices)s; default is %(default)s)', metavar='MODE') 628 parser_update_recipe.add_argument('--mode', '-m', choices=['patch', 'srcrev', 'auto'], default='auto', help='Update mode (where %(metavar)s is %(choices)s; default is %(default)s)', metavar='MODE')
629 parser_add.add_argument('--initial-rev', help='Starting revision for patches') 629 parser_update_recipe.add_argument('--initial-rev', help='Starting revision for patches')
630 parser_add.add_argument('--no-remove', '-n', action="store_true", help='Don\'t remove patches, only add or update') 630 parser_update_recipe.add_argument('--no-remove', '-n', action="store_true", help='Don\'t remove patches, only add or update')
631 parser_add.set_defaults(func=update_recipe) 631 parser_update_recipe.set_defaults(func=update_recipe)
632 632
633 parser_status = subparsers.add_parser('status', help='Show workspace status', 633 parser_status = subparsers.add_parser('status', help='Show workspace status',
634 description='Lists recipes currently in your workspace and the paths to their respective external source trees', 634 description='Lists recipes currently in your workspace and the paths to their respective external source trees',