Use pure instead of Right

For compatibility with new optparse-applicatives.