Allows you to parse command line options similarly to getopt_long()
