summaryrefslogtreecommitdiff
path: root/testprogs/ejs/argv.js
blob: 093123014a201a423f2ba0bdf3f368eea304c12a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
	demonstrate use of GetOptions
*/

var ok;
var options = new Object();

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

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

printVars(options);