diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-11 07:43:36 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:20:06 -0500 |
commit | 1864b27857c71b998dd201acaaa3c8664b8be960 (patch) | |
tree | 9358398c8ee05a48ba0fcb2c21e4730ffffb253d /testprogs/ejs/argv.js | |
parent | f583a85d4d520b0ab6ca83efd36e71563108b370 (diff) | |
download | samba-1864b27857c71b998dd201acaaa3c8664b8be960.tar.gz samba-1864b27857c71b998dd201acaaa3c8664b8be960.tar.xz samba-1864b27857c71b998dd201acaaa3c8664b8be960.zip |
r8317: convert the example scripts over to the new GetOptions() call
(This used to be commit 5f079d74630cf6431ec8af7240f60054cf8b9ab7)
Diffstat (limited to 'testprogs/ejs/argv.js')
-rw-r--r-- | testprogs/ejs/argv.js | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/testprogs/ejs/argv.js b/testprogs/ejs/argv.js index 2f8dc74174a..093123014a2 100644 --- a/testprogs/ejs/argv.js +++ b/testprogs/ejs/argv.js @@ -1,7 +1,18 @@ /* - demonstrate use of argv + 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(ARGV); +printVars(options); |