diff mbox series

Move --buildfile help at the end of "Execution" group

Message ID 20230110090811.558394-1-yoann.congal@smile.fr
State New
Headers show
Series Move --buildfile help at the end of "Execution" group | expand

Commit Message

Yoann Congal Jan. 10, 2023, 9:08 a.m. UTC
Often, '--buildfile/-b' is used to mean "Do not execute anything but
this recipe", so it make sense to have it in the "Execution control
options" group.

Fixes [YOCTO #12018].

(Original suggestion by Ross Burton)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
---
 lib/bb/main.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/lib/bb/main.py b/lib/bb/main.py
index 1c87a02d..92d8dc02 100755
--- a/lib/bb/main.py
+++ b/lib/bb/main.py
@@ -136,10 +136,6 @@  def create_bitbake_parser():
                         help="Execute the specified task (default is 'build') for these target "
                              "recipes (.bb files).")
 
-    general_group.add_argument("-b", "--buildfile",
-                        help="Execute tasks from a specific .bb recipe directly. WARNING: Does "
-                             "not handle any dependencies from other recipes.")
-
     general_group.add_argument("-s", "--show-versions", action="store_true",
                         help="Show current and preferred versions of all recipes.")
 
@@ -227,6 +223,9 @@  def create_bitbake_parser():
                         help="Set the exit code depending on whether upstream floating "
                             "revisions have changed or not.")
 
+    exec_group.add_argument("-b", "--buildfile",
+                        help="Execute tasks from a specific .bb recipe directly. WARNING: Does "
+                             "not handle any dependencies from other recipes.")
 
     logging_group.add_argument("-D", "--debug", action="count", default=0,
                         help="Increase the debug level. You can specify this "