Implement Swift version, including basic command line options.