aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/control.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-07-20 12:24:14 -0600
committerSimon Glass <sjg@chromium.org>2019-07-29 09:38:06 -0600
commitbb5edc1d3c0ebc989dfaa7d1e57cdde15d61f2e0 (patch)
tree53e70b84636a40bdc99206e05509c9386d11b239 /tools/binman/control.py
parentd7fa4e4b22d8f493e6f643843f0a7aaf448d098a (diff)
downloadu-boot-bb5edc1d3c0ebc989dfaa7d1e57cdde15d61f2e0.zip
u-boot-bb5edc1d3c0ebc989dfaa7d1e57cdde15d61f2e0.tar.gz
u-boot-bb5edc1d3c0ebc989dfaa7d1e57cdde15d61f2e0.tar.bz2
binman: Correct the error message for invalid path
At present this message references -o for output file. But binman uses -f now. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/control.py')
-rw-r--r--tools/binman/control.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/binman/control.py b/tools/binman/control.py
index 232a38d..e6722c9 100644
--- a/tools/binman/control.py
+++ b/tools/binman/control.py
@@ -138,9 +138,9 @@ def ExtractEntries(image_fname, output_fname, outdir, entry_paths,
# Output an entry to a single file, as a special case
if output_fname:
if not entry_paths:
- raise ValueError('Must specify an entry path to write with -o')
+ raise ValueError('Must specify an entry path to write with -f')
if len(entry_paths) != 1:
- raise ValueError('Must specify exactly one entry path to write with -o')
+ raise ValueError('Must specify exactly one entry path to write with -f')
entry = image.FindEntryPath(entry_paths[0])
data = entry.ReadData(decomp)
tools.WriteFile(output_fname, data)