scripts: west: build: add snippet argument to usage output
Add example snippet argument to usage output of the "west build" command
and use the singular "SNIPPET" in the generated help text.
Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
diff --git a/scripts/west_commands/build.py b/scripts/west_commands/build.py
index f7a605f..0fda974 100644
--- a/scripts/west_commands/build.py
+++ b/scripts/west_commands/build.py
@@ -24,6 +24,7 @@
BUILD_USAGE = '''\
west build [-h] [-b BOARD[@REV]]] [-d BUILD_DIR]
+ [-S SNIPPET]
[-t TARGET] [-p {auto, always, never}] [-c] [--cmake-only]
[-n] [-o BUILD_OPT] [-f]
[--sysbuild | --no-sysbuild] [--domain DOMAIN]
@@ -135,7 +136,7 @@
group.add_argument('-n', '--just-print', '--dry-run', '--recon',
dest='dry_run', action='store_true',
help="just print build commands; don't run them")
- group.add_argument('-S', '--snippet', dest='snippets',
+ group.add_argument('-S', '--snippet', dest='snippets', metavar='SNIPPET',
action='append', default=[],
help='''add the argument to SNIPPET; may be given
multiple times. Forces CMake to run again if given.