mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
1864b27857
(This used to be commit 5f079d7463
)
19 lines
275 B
JavaScript
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);
|