summaryrefslogtreecommitdiffstats
path: root/flashrom.8.tmpl
diff options
context:
space:
mode:
authorDaniel Campello <campello@chromium.org>2022-03-14 11:43:16 -0600
committerEdward O'Callaghan <quasisec@chromium.org>2022-03-29 22:45:17 +0000
commit025c75d05cf16c0f53c2bafb73c660c867572db9 (patch)
tree71c397ebbc402970a3547fd18923da2540e32a48 /flashrom.8.tmpl
parentcaa0335114a817a69b43e5bc32ec9a5c2c65c896 (diff)
downloadflashrom-025c75d05cf16c0f53c2bafb73c660c867572db9.tar.gz
flashrom-025c75d05cf16c0f53c2bafb73c660c867572db9.tar.bz2
flashrom-025c75d05cf16c0f53c2bafb73c660c867572db9.zip
flashrom.8.tmpl: Clarify man entries for -w/-v/-x
This change adds follow up changes to the man page: - Explain (-) argument for -w/-v operations - Expand on region name handling of -x operation Also updates cli_classic.c to match with --help output. BUG=b:224364316 Change-Id: I0cba593da3926c8587027789f4e1e89a2329ca7f Signed-off-by: Daniel Campello <campello@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/62794 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'flashrom.8.tmpl')
-rw-r--r--flashrom.8.tmpl16
1 files changed, 11 insertions, 5 deletions
diff --git a/flashrom.8.tmpl b/flashrom.8.tmpl
index fe2d9d6fb..3e4bc5e4b 100644
--- a/flashrom.8.tmpl
+++ b/flashrom.8.tmpl
@@ -82,11 +82,13 @@ Read flash ROM contents and save them into the given
.BR <file> .
If the file already exists, it will be overwritten.
.TP
-.B "\-w, \-\-write <file>"
+.B "\-w, \-\-write (<file>|-)"
Write
.B <file>
-into flash ROM. This will first automatically
-.B erase
+into flash ROM. If
+.B -
+is provided instead, contents will be read from stdin. This will first automatically
+ B erase
the chip, then write to it.
.sp
In the process the chip is also read several times. First an in-memory backup
@@ -124,16 +126,20 @@ region using the
.BR internal
programmer. It may be enabled by default in this case in the future.
.TP
-.B "\-v, \-\-verify <file>"
+.B "\-v, \-\-verify (<file>|-)"
Verify the flash ROM contents against the given
.BR <file> .
+If
+.BR -
+is provided instead, contents will be written to the stdout.
.TP
.B "\-E, \-\-erase"
Erase the flash ROM chip.
.TP
.B "\-x, \-\-extract"
Extract every region defined on the layout from flash ROM chip to a
-file with the same name as the extracted region.
+file with the same name as the extracted region (replacing spaces with
+underscores).
.TP
.B "\-V, \-\-verbose"
More verbose output. This option can be supplied multiple times