Switch from cmdargs to optparse-applicative