Just use optparse-applicative in PureScript. Applicatives are great for this and the library gives it to you for free.
> Just use optparse-applicative in PureScript.
Or in Haskell!