@@ -35,11 +35,15 @@ def main():
add_help=False)
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('-F', '--force', help='Forced execution: can be specified multiple times. -F will force add without recipe parse verification and -FF will additionally force the run withput layer parsing.', action='count', default=0)
+ if toolname == "bitbake-layers":
+ parser.add_argument('-F', '--force', help='Forced execution: can be specified multiple times. -F will force add without recipe parse verification and -FF will additionally force the run without layer parsing.', action='count', default=0)
parser.add_argument('--color', choices=['auto', 'always', 'never'], default='auto', help='Colorize output (where %(metavar)s is %(choices)s)', metavar='COLOR')
global_args, unparsed_args = parser.parse_known_args()
+ if toolname != "bitbake-layers":
+ global_args.force = 0
+
# Help is added here rather than via add_help=True, as we don't want it to
# be handled by parse_known_args()
parser.add_argument('-h', '--help', action='help', default=argparse.SUPPRESS,
There is currently no use for it, and its help message makes no sense in the context of bitbake-config-build. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> --- bin/bitbake-layers | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)