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

Glen Hocky hockyg at uchicago.edu
Thu Apr 9 13:40:34 CDT 2009


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


Thanks,
Glen



More information about the Swift-user mailing list