scripts: add board revision help text for west build
west build supports specifying the board revision using @revision, but
it's not mentioned in the help text. This commit updates the help text
to describe how to specify the board revision.
Signed-off-by: Gregers Gram Rygg <gregers.gram.rygg@nordicsemi.no>
diff --git a/scripts/west_commands/build.py b/scripts/west_commands/build.py
index 8a3cf9b..3e72bc9 100644
--- a/scripts/west_commands/build.py
+++ b/scripts/west_commands/build.py
@@ -20,7 +20,7 @@
_ARG_SEPARATOR = '--'
BUILD_USAGE = '''\
-west build [-h] [-b BOARD] [-d BUILD_DIR]
+west build [-h] [-b BOARD[@REV]]] [-d BUILD_DIR]
[-t TARGET] [-p {auto, always, never}] [-c] [--cmake-only]
[-n] [-o BUILD_OPT] [-f]
[source_dir] -- [cmake_opt [cmake_opt ...]]
@@ -98,7 +98,8 @@
# Remember to update west-completion.bash if you add or remove
# flags
- parser.add_argument('-b', '--board', help='board to build for')
+ parser.add_argument('-b', '--board',
+ help='board to build for with optional board revision')
# Hidden option for backwards compatibility
parser.add_argument('-s', '--source-dir', help=argparse.SUPPRESS)
parser.add_argument('-d', '--build-dir',