diff mbox series

[2/4] bitbake-setup: Add version option

Message ID 20260326173951.519326-3-rob.woolley@windriver.com
State New
Headers show
Series [1/4] bin: Move version information to common file | expand

Commit Message

Rob Woolley March 26, 2026, 5:39 p.m. UTC
This adds the long-form version option to match bitbake.

Signed-off-by: Rob Woolley <rob.woolley@windriver.com>
---
 bin/bitbake-setup | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/bin/bitbake-setup b/bin/bitbake-setup
index 1ea41853b..b05894e01 100755
--- a/bin/bitbake-setup
+++ b/bin/bitbake-setup
@@ -1064,6 +1064,7 @@  def main():
         )
     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('--version', action='version', version='%(prog)s ' + __version__)
     parser.add_argument('--color', choices=['auto', 'always', 'never'], default='auto', help='Colorize output (where %(metavar)s is %(choices)s)', metavar='COLOR')
     parser.add_argument('--no-network', action='store_true', help='Do not check whether configuration repositories and layer repositories have been updated; use only the local cache.')
     parser.add_argument('--global-settings', action='store', metavar='PATH', help='Path to the global settings file.')