hydrausb3 / wch-ch56x-isp

Simple WCH MCU tool to flash over usb (compatible with WCH CH569 & CH565)
12 stars 6 forks source link

new options should be visible in -h #5

Closed hansfbaier closed 2 years ago

hansfbaier commented 2 years ago

The option -c for example is not documented in the usage output (-h).

bvernoux commented 2 years ago

Tested here with Windows build it works

$ ./wch-isp.exe -h
usage: wch-isp.exe [-Vprvc] COMMAND [ARG ...]
       wch-isp.exe [-Vprvc] flash FILE

But could be improved to add a better help to provide details on each option

hansfbaier commented 2 years ago

Yes, nobody knows what those options mean

bvernoux commented 2 years ago

Added in latest version v0.1.0 released see https://github.com/hydrausb3/wch-isp/releases/tag/v0.1.0

 ./wch-isp.exe -h
usage: wch-isp.exe [-Vprvc] COMMAND [ARG ...]
       wch-isp.exe [-Vprvc] flash|debug-on|debug-off FILE
-V means print version
-p means display progress
-r means do reset at end
-v means do verify after erase/program
-c means print CH569 config(after isp_init and before isp_fini)