Import compiler builtins

When you run swift myscript.swift, arguments after the filename become arguments to the script, available in CommandLine.arguments, rather than arguments to Swift.

(Ask Me How I Know™.)

The other gotcha you'll probably run into: If you use -parse-stdlib but you still want access to the real standard library, you'll need to import Swift.

1 Like