poky/bitbake/lib
Johannes Schneider 7320e59aec bitbake: bitbake-setup: commandline: use subsubparser for settings {list,set,unset}
Previously the sub-command 'settings' would take any number of
arguments and then silently do nothing if the number wasn't three.

The help text was also not clear about this, marking the positionals
separately as optional:

usage: bitbake-setup settings [-h] [--global] [--unset UNSET UNSET] [-l] [section] [key] [value]

The '--unset SECTION SETTING' also did not  integrate too well, as it
had its own positional arguments for section+setting.

For a bit more consistency and a explorable help, a sub-subparser is
added, that provides the commands:
  bitbake-setup settings list
  bitbake-setup settings set foo bar baz
  bitbake-setup settings unset foo bar
with a '--global' that is added from a stand-alone parent parser, so
that it shows up in all sub-command help texts.

The new help text now reads:
usage: bitbake-setup settings [-h] [--global] {list,set,unset} ...

and the respective sub commands:
usage: bitbake-setup settings list [-h] [--global]
usage: bitbake-setup settings set [-h] [--global] <section> <setting> <value>
usage: bitbake-setup settings unset [-h] [--global] <section> <setting>

(Bitbake rev: 8b582ef8dd0cef0192d4c0104bcd9b5d642d132c)

Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-10-14 11:24:57 +01:00
..
bb bitbake: bitbake-setup: commandline: use subsubparser for settings {list,set,unset} 2025-10-14 11:24:57 +01:00
bblayers bitbake: Revert "bblayers/query: Fix using "removeprefix" string method" 2025-03-24 17:29:55 +00:00
bs4 bitbake: lib: Remove double imports 2025-02-27 15:12:55 +00:00
hashserv bitbake: Use a "fork" multiprocessing context 2025-07-23 11:34:31 +01:00
layerindexlib bitbake: layerindexlib: fix missing layer branch backtrace 2024-02-27 11:36:38 +00:00
ply bitbake: lib: Remove double imports 2025-02-27 15:12:55 +00:00
progressbar bitbake: progressbar: Add self._fd_console to use for self._handle_resize() 2025-08-19 11:33:23 +01:00
prserv bitbake: prserv: increment 9 to 10 correctly 2024-09-12 16:17:20 +01:00
simplediff
toaster bitbake: toaster/tests: Fix automated testing failures 2025-06-21 15:35:49 +01:00
codegen.py bitbake: codegen: cleanup deprecated AST usages 2023-11-14 23:39:53 +00:00
pyinotify.py bitbake: pyinotify.py: Simplify identification of which event has occurred 2022-04-14 09:48:33 +01:00