summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-01-11 21:35:18 -0700
committerCommit Bot <commit-bot@chromium.org>2022-01-12 19:31:40 +0000
commit2aeac4973de8c4965dfced77d9c3be5325675337 (patch)
tree81a94a18c7faae5dd90cf7a2ae0fb87a18631374
parent4b83d19fa6b016ae09b55f0f3d6f0e1888c0f8bd (diff)
downloadchrome-ec-2aeac4973de8c4965dfced77d9c3be5325675337.tar.gz
zephyr: zmake: Clean up metavar for subcommand positional
Setting a metavar here clears up the usage text slightly. Also expand out on that help string slightly. BUG=b:180609783 BRANCH=none TEST=output of "zmake --help" Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I44c65ddaaa19beec0bc485771f199882262fa60a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3382479 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
-rw-r--r--zephyr/zmake/zmake/__main__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/zephyr/zmake/zmake/__main__.py b/zephyr/zmake/zmake/__main__.py
index 2df03654f0..136831a319 100644
--- a/zephyr/zmake/zmake/__main__.py
+++ b/zephyr/zmake/zmake/__main__.py
@@ -157,7 +157,11 @@ def get_argparser():
"--zephyr-base", type=pathlib.Path, help="Path to Zephyr OS repository"
)
- sub = parser.add_subparsers(dest="subcommand", help="Subcommand")
+ sub = parser.add_subparsers(
+ dest="subcommand",
+ metavar="subcommand",
+ help="Subcommand to run",
+ )
sub.required = True
configure = sub.add_parser(