From: Marc Schink Date: Wed, 11 Sep 2019 09:08:29 +0000 (+0200) Subject: flash/nor/tcl: Fix usage of 'flash erase_sector' command X-Git-Tag: v0.11.0-rc1~596 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=181d594205f91969b0effdbc97e3d689d28e4cb3 flash/nor/tcl: Fix usage of 'flash erase_sector' command Change-Id: I2141e377a0531cab8d1140049a2ee7721d30cfdc Signed-off-by: Marc Schink Reviewed-on: http://openocd.zylin.com/5299 Tested-by: jenkins Reviewed-by: Tomas Vanek --- diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c index b336cffda7..bd313a0b5b 100644 --- a/src/flash/nor/tcl.c +++ b/src/flash/nor/tcl.c @@ -985,7 +985,7 @@ static const struct command_registration flash_exec_command_handlers[] = { .name = "erase_sector", .handler = handle_flash_erase_command, .mode = COMMAND_EXEC, - .usage = "bank_id first_sector_num last_sector_num", + .usage = "bank_id first_sector_num (last_sector_num|'last')", .help = "Erase a range of sectors in a flash bank.", }, {