Ever wanted to write bash scripts that can take long option names, but then struggled to have anything like a normal Unix program's handling of long and short options?
Yeah, me too. Finally I wrote a getopts_long()
for Bash:
# getopts_long long_opts_assoc_array_name optstring optname args...