Skip to content

Commit

Permalink
flash/startup.tcl: Tidy flash program preverify documentation
Browse files Browse the repository at this point in the history
Remove the hyphen from "pre-verify" in usage text.
Add preverify to the help text and procedure comment

Change-Id: I6d96e78ca84d99929300d461e435f5b4ce07b5db
Signed-off-by: Grant Ramsay <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/8376
Reviewed-by: Antonio Borneo <[email protected]>
Tested-by: jenkins
  • Loading branch information
grantramsay authored and borneoa committed Jul 28, 2024
1 parent 2cbfd14 commit 16c114c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/flash/startup.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
# program utility proc
# usage: program filename
# optional args: verify, reset, exit and address
# optional args: preverify, verify, reset, exit and address
#

lappend _telnet_autocomplete_skip program_error
Expand Down Expand Up @@ -101,8 +101,8 @@ proc program {filename args} {
return
}

add_help_text program "write an image to flash, address is only required for binary images. verify, reset, exit are optional"
add_usage_text program "<filename> \[address\] \[pre-verify\] \[verify\] \[reset\] \[exit\]"
add_help_text program "write an image to flash, address is only required for binary images. preverify, verify, reset, exit are optional"
add_usage_text program "<filename> \[address\] \[preverify\] \[verify\] \[reset\] \[exit\]"

# stm32[f0x|f3x] uses the same flash driver as the stm32f1x
proc stm32f0x args { eval stm32f1x $args }
Expand Down

0 comments on commit 16c114c

Please sign in to comment.