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