Damien Nadé
Damien Nadé
I cannot reproduce it on fedora 42 with bash 5.2.37 ``` [anvil@krampouz ~/git/bash-argsparse]# bash tutorial/1-basics -o 1 Options reporting: option2 : yes (1) option3 : no option1 : no option4...
By default, yes, Mac has indeed a non-GNU version.
So, if I understandand correctly, this is an OS / user configuration isssue. You would need to `PATH=$(brew --prefix gnu-getopt):$PATH` in your script before sourcing argsparse.
`getopts` is not a `getopt`. it's a built-in and it's out of the question. Let's add an `ARGSPARSE_GNU_GETOPT={ARGSPARSE_GNU_GETOPT:-getopt}`.
This okay with you ?