Typo fix.

(Thanks to an anonymous contributor for pointing it out.)
Update OS X main() function to use flags.