The `getopt` and `getopt_long` functions automate some of the chores involved in parsing typical unix command line options.