getopt is much better than a homebrew