Replaced getopt with optparse-applicative.