[PATCH] tools: Adjust wording of --part help

4 views
Skip to first unread message

Jan Kiszka

unread,
Feb 2, 2023, 3:34:09 PM2/2/23
to efibootguard-dev
From: Jan Kiszka <jan.k...@siemens.com>

Make sure the working fits both bg_setenv and bg_printenv.

Signed-off-by: Jan Kiszka <jan.k...@siemens.com>
---
completion/common.py | 2 +-
tools/bg_envtools.h | 7 +++----
2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/completion/common.py b/completion/common.py
index 8134aef..e75f85e 100644
--- a/completion/common.py
+++ b/completion/common.py
@@ -16,7 +16,7 @@ def add_common_opts(parser):
parser.add_argument(
"-f", "--filepath", metavar="ENVFILE", help="Environment to use. Expects a file name, usually called BGENV.DAT."
).complete = shtab.FILE
- parser.add_argument("-p", "--part", metavar="ENV_PART", type=int, help="Set environment partition to update")
+ parser.add_argument("-p", "--part", metavar="ENV_PART", type=int, help="Set environment partition to use")
parser.add_argument("-v", "--verbose", action="store_true", help="Be verbose")
parser.add_argument("-V", "--version", action="store_true", help="Print version")
# there is a bug in shtab which currently prohibits "-?"
diff --git a/tools/bg_envtools.h b/tools/bg_envtools.h
index c7d42e5..895b53f 100644
--- a/tools/bg_envtools.h
+++ b/tools/bg_envtools.h
@@ -29,10 +29,9 @@
"Environment to use. Expects a file name, " \
"usually called BGENV.DAT.") \
, OPT("part", 'p', "ENV_PART", 0, \
- "Set environment partition to update. If no partition is " \
- "specified, " \
- "the one with the smallest revision value above zero is " \
- "updated.") \
+ "Set environment partition to use. If no partition is " \
+ "specified, the one with the smallest revision value above " \
+ "zero is selected.") \
, OPT("verbose", 'v', 0, 0, "Be verbose") \
, OPT("version", 'V', 0, 0, "Print version")

--
2.35.3
Reply all
Reply to author
Forward
0 new messages