Move from cmdtheline to optparse-applicative #690

Hello,
I gave #690 a shot. Let me know if I missed anything or anything needs any fixes.