RBGetOpt is a project mainly written in ..., it's free.
A REALbasic class to handle parsing of command line args