summaryrefslogtreecommitdiff
path: root/zephyr
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-11-30 12:45:50 -0700
committerCommit Bot <commit-bot@chromium.org>2021-11-30 21:40:17 +0000
commit234b3ea67bb17f90d04a017de8f87433bf474e81 (patch)
tree1e4fcb3c1559cad22ee63a544e2b808efbe09674 /zephyr
parent42e4ac0b7b4febf92b9ed4be85fac4e5129c8e84 (diff)
downloadchrome-ec-234b3ea67bb17f90d04a017de8f87433bf474e81.tar.gz
zephyr: zmake: Add program name and description to argparse
Add the program name and description to the constructor for the argument parser. This enables slightly friendlier output for "zmake --help". BUG=none BRANCH=none TEST=Inspect output of "zmake --help" Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I17691111c02486ad9b1ba0f8ebb0e7566eaf7e70 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3309362 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'zephyr')
-rw-r--r--zephyr/zmake/zmake/__main__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/zephyr/zmake/zmake/__main__.py b/zephyr/zmake/zmake/__main__.py
index f283bc00ea..1f9c506ee5 100644
--- a/zephyr/zmake/zmake/__main__.py
+++ b/zephyr/zmake/zmake/__main__.py
@@ -107,7 +107,10 @@ def main(argv=None):
maybe_reexec(argv)
- parser = argparse.ArgumentParser()
+ parser = argparse.ArgumentParser(
+ prog="zmake",
+ description="Chromium OS's meta-build tool for Zephyr",
+ )
parser.add_argument(
"--checkout", type=pathlib.Path, help="Path to ChromiumOS checkout"
)