From 1864b27857c71b998dd201acaaa3c8664b8be960 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 11 Jul 2005 07:43:36 +0000 Subject: r8317: convert the example scripts over to the new GetOptions() call (This used to be commit 5f079d74630cf6431ec8af7240f60054cf8b9ab7) --- testprogs/ejs/nbtstats | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'testprogs/ejs/nbtstats') 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"); -- cgit