1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/testprogs/ejs/argv.js
2007-10-10 13:20:06 -05:00

19 lines
275 B
JavaScript

/*
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);