[Swift-user] Is there a way to have an optional command line argument to a swift script?

Mihael Hategan hategan at mcs.anl.gov
Thu Apr 9 13:49:22 CDT 2009


On Thu, 2009-04-09 at 13:40 -0500, Glen Hocky wrote:
> I have a new command line argument for my script and I want to check if 
> it's there or not.
> doing @arg("foo") just gives
>     Missing command line argument: foo

What's the command line you use to start the script?

> 
> 
> Thanks,
> Glen
> _______________________________________________
> Swift-user mailing list
> Swift-user at ci.uchicago.edu
> http://mail.ci.uchicago.edu/mailman/listinfo/swift-user




More information about the Swift-user mailing list