diff mbox series

[2/3] bitbake-layers: Remove the --force option for bitbake-config-build

Message ID 20251121001006.3756451-2-pkj@axis.com
State New
Headers show
Series [1/3] bitbake-layers: Correct the help description for bitbake-config-build | expand

Commit Message

Peter Kjellerstedt Nov. 21, 2025, 12:10 a.m. UTC
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(-)
diff mbox series

Patch

diff --git a/bin/bitbake-layers b/bin/bitbake-layers
index 1154eb6d2..945921d9d 100755
--- a/bin/bitbake-layers
+++ b/bin/bitbake-layers
@@ -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,