summaryrefslogtreecommitdiff
path: root/testprogs/ejs/nbtstats
diff options
context:
space:
mode:
Diffstat (limited to 'testprogs/ejs/nbtstats')
-rwxr-xr-xtestprogs/ejs/nbtstats10
1 files changed, 10 insertions, 0 deletions
diff --git a/testprogs/ejs/nbtstats b/testprogs/ejs/nbtstats
index f2655e8c6e..fe93a728cd 100755
--- a/testprogs/ejs/nbtstats
+++ b/testprogs/ejs/nbtstats
@@ -3,6 +3,16 @@
demonstrate access to irpc calls from ejs
*/
+var options = new Object();
+
+ok = GetOptions(ARGV, options,
+ "POPT_AUTOHELP",
+ "POPT_COMMON_SAMBA");
+if (ok == false) {
+ println("Failed to parse options: " + options.ERROR);
+ return -1;
+}
+
var conn = new Object();
status = irpc_connect(conn, "nbt_server");