Commit 5d1f4185 authored by Carl-Daniel Hailfinger's avatar Carl-Daniel Hailfinger
Browse files

Remove duplicated [file] from usage help


A file is already specified directly in conjunction for -r/-w/-v.

Corresponding to flashrom svn r628.
Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
parent dd2e14c6
...@@ -4,7 +4,7 @@ flashrom \- detect, read, write, verify and erase flash chips ...@@ -4,7 +4,7 @@ flashrom \- detect, read, write, verify and erase flash chips
.SH SYNOPSIS .SH SYNOPSIS
.B flashrom \fR[\fB\-VfLzhR\fR] [\fB\-E\fR|\fB\-r\fR file|\fB\-w\fR file|\fB\-v\fR file] .B flashrom \fR[\fB\-VfLzhR\fR] [\fB\-E\fR|\fB\-r\fR file|\fB\-w\fR file|\fB\-v\fR file]
[\fB\-c\fR chipname] [\fB\-m\fR [vendor:]part] [\fB\-c\fR chipname] [\fB\-m\fR [vendor:]part]
[\fB\-l\fR file] [\fB\-i\fR image] [\fB\-p\fR programmer] [file] [\fB\-l\fR file] [\fB\-i\fR image] [\fB\-p\fR programmer]
.SH DESCRIPTION .SH DESCRIPTION
.B flashrom .B flashrom
is a utility for detecting, reading, writing, verifying and erasing flash is a utility for detecting, reading, writing, verifying and erasing flash
......
...@@ -493,7 +493,7 @@ int erase_flash(struct flashchip *flash) ...@@ -493,7 +493,7 @@ int erase_flash(struct flashchip *flash)
void usage(const char *name) void usage(const char *name)
{ {
printf("usage: %s [-VfLzhR] [-E|-r file|-w file|-v file] [-c chipname]\n" printf("usage: %s [-VfLzhR] [-E|-r file|-w file|-v file] [-c chipname]\n"
" [-m [vendor:]part] [-l file] [-i image] [-p programmer] [file]\n\n", name); " [-m [vendor:]part] [-l file] [-i image] [-p programmer]\n\n", name);
printf("Please note that the command line interface for flashrom will " printf("Please note that the command line interface for flashrom will "
"change before\nflashrom 1.0. Do not use flashrom in scripts " "change before\nflashrom 1.0. Do not use flashrom in scripts "
...@@ -518,9 +518,8 @@ void usage(const char *name) ...@@ -518,9 +518,8 @@ void usage(const char *name)
" it87spi, ft2232spi, serprog)\n" " it87spi, ft2232spi, serprog)\n"
" -h | --help: print this help text\n" " -h | --help: print this help text\n"
" -R | --version: print the version (release)\n" " -R | --version: print the version (release)\n"
"\nYou can specify one of -E, -r, -w, -v or no operation. " "\nYou can specify one of -E, -r, -w, -v or no operation. If no operation is\n"
"If no operation is\nspecified, then all that happens" "specified, then all that happens is that flash info is dumped.\n\n");
" is that flash info is dumped.\n\n");
exit(1); exit(1);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment