Parse long options in bash scripts Unknownbolt | 2012-03-07 geirha in #bash on irc.freenode.net had this solution, which I rather liked and wanted to keep for later use: hybrid_getopts.bash