diff --git a/cli_classic.c b/cli_classic.c index 5cc14a01a..0b0944f30 100644 --- a/cli_classic.c +++ b/cli_classic.c @@ -71,8 +71,9 @@ static void cli_classic_usage(const char *name) " --fmap read ROM layout from fmap embedded in ROM\n" " --fmap-file read ROM layout from fmap in \n" " --ifd read layout from an Intel Firmware Descriptor\n" - " -i | --image [:] only read/write image from layout\n" + " -i | --include [:] only read/write image from layout\n" " (optionally with data from )\n" + " --image [:] deprecated, please use --include\n" " -o | --output log output to \n" " --flash-contents assume flash contents to be \n" " -L | --list-supported print supported devices\n" @@ -619,7 +620,8 @@ int main(int argc, char *argv[]) {"ifd", 0, NULL, OPTION_IFD}, {"fmap", 0, NULL, OPTION_FMAP}, {"fmap-file", 1, NULL, OPTION_FMAP_FILE}, - {"image", 1, NULL, 'i'}, + {"image", 1, NULL, 'i'}, // (deprecated): back compatibility. + {"include", 1, NULL, 'i'}, {"flash-contents", 1, NULL, OPTION_FLASH_CONTENTS}, {"flash-name", 0, NULL, OPTION_FLASH_NAME}, {"flash-size", 0, NULL, OPTION_FLASH_SIZE}, diff --git a/flashrom.8.tmpl b/flashrom.8.tmpl index e672869ce..4c433233a 100644 --- a/flashrom.8.tmpl +++ b/flashrom.8.tmpl @@ -49,7 +49,7 @@ flashrom \- detect, read, write, verify and erase flash chips (\fB\-\-flash\-name\fR|\fB\-\-flash\-size\fR| [\fB\-E\fR|\fB\-x\fR|\fB\-r\fR |\fB\-w\fR |\fB\-v\fR ] [(\fB\-l\fR |\fB\-\-ifd\fR|\fB \-\-fmap\fR|\fB\-\-fmap-file\fR ) - [\fB\-i\fR [:]]] + [\fB\-i\fR [:]]] [\fB\-\-wp\-status\fR] [\fB\-\-wp\-list\fR] [\fB\-\-wp\-enable\fR|\fB\-\-wp\-disable\fR] [\fB\-\-wp\-range\fR ,|\fB\-\-wp\-region\fR ] [\fB\-n\fR] [\fB\-N\fR] [\fB\-f\fR])]