[Swift-devel] variable command line options

Ben Clifford benc at hawaga.org.uk
Fri Mar 2 12:32:29 CST 2007



On Thu, 1 Mar 2007, Veronika  V. Nefedova wrote:

> The application I am working with accepts a variable number of arguments:
> could be 10, could be 15 (i.e. some of them are optional). I need to call this
> application N times with 17 input command line parameters, M times with 18
> parameters, and X times with 20 parameters. Do I need to define 3 functions,
> one for each set of parameters ? Or there is a better way ? Input parameters
> is a combination of  strings, filenames and stdin input.

it is possible to make SwiftScript procedures have parameters with default 
values. that isn't exactly what you are asking for, but might be related:

http://www.ci.uchicago.edu/swift/guides/tutorial.php#id2784846

But that doesn't let you change the parameters going to the application 
itself.

Can you give a couple of example command-lines and explain what the 
differences are?

-- 



More information about the Swift-devel mailing list