stm32duino / Arduino_Tools

Contains upload tools for STM32 based boards
Other
89 stars 64 forks source link

fix(stm32CubeProg): fallback to BSD getopt on mac #100

Closed fpistm closed 2 months ago

fpistm commented 3 months ago

By default, MacOS uses getopt from FreeBSD and not the GNU-based one. Then "-o" and long options are not supported except if gnu-getopt is installed.

Fixes #99

Main advantage to kept GNU getopt by default is it is able to deal with space in arguments. Install the package gnu-getopt via e.g. Homebrew:

brew install gnu-getopt

If not installed the BSD getopt is used but long option and space in arguments are not supported.