summaryrefslogtreecommitdiffstats
path: root/testprogs/ejs/argv.js
blob: ffb6e007eb6b88ba191522b14cdf9447e39b878e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
	demonstrate use of GetOptions
*/

var options = GetOptions(ARGV, 
		"POPT_AUTOHELP",
		"POPT_COMMON_SAMBA",
		"myopt=s",
		"intopt=i",
		"noopt");

println("You called this script with arguments:");

printVars(options);