diff options
author | Ayke van Laethem <[email protected]> | 2019-11-12 11:40:16 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2019-11-12 17:45:26 +0100 |
commit | d2d78d3d0a4d2a96caf1cb85ad5bc1387d9cbc58 (patch) | |
tree | 4ef37e6f826ff17760b3b1fb22c5b09fa76e3c86 /compileopts/options.go | |
parent | c6255e4d0a9f72b3094b3f34eecf036680b95874 (diff) | |
download | tinygo-d2d78d3d0a4d2a96caf1cb85ad5bc1387d9cbc58.tar.gz tinygo-d2d78d3d0a4d2a96caf1cb85ad5bc1387d9cbc58.zip |
main: add -programmer flag
This flag is overloaded. It can be used in two ways:
* Choosing the flash method to use (openocd, msd, command).
* Choosing the OpenOCD programmer name.
For example, you can use one of these to use OpenOCD instead of the
mass-storage device programmer:
tinygo flash -target=microbit -programmer=openocd
tinygo flash -target=microbit -programmer=cmsis-dap
Diffstat (limited to 'compileopts/options.go')
-rw-r--r-- | compileopts/options.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compileopts/options.go b/compileopts/options.go index 891f21728..7336ee3fc 100644 --- a/compileopts/options.go +++ b/compileopts/options.go @@ -19,4 +19,5 @@ type Options struct { WasmAbi string HeapSize int64 TestConfig TestConfig + Programmer string } |