Open zoobab opened 6 years ago
Running without any option is a valid use case: in that case stm32loader prints the bootloader version and device ID.
It's just unfortunate that the default port has a low chance of being correct (and 0% chance on non-Unix platforms).
Basically, what you're asking is to make the -p [port] option mandatory.
I've done this in a branch (note: requires Python3): https://github.com/florisla/stm32loader/tree/require-option-p
When not provided with no argument, it should report an error and usage example.
Right now, it throws an error saying it cannot find "/dev/tty.usbserial-ftCYPMYJ":