diff options
author | Rafal Szczesniak <mimir@samba.org> | 2005-08-22 14:32:58 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:34:20 -0500 |
commit | 55e746ad560d4406821bc2d721cbb929b79a7a0a (patch) | |
tree | d9baa6d6d7651e3f95313699510335c714a2e681 /source4/scripting/bin | |
parent | 5bd6a114711c0033403a656b42574380a6ebcd3d (diff) | |
download | samba-55e746ad560d4406821bc2d721cbb929b79a7a0a.tar.gz samba-55e746ad560d4406821bc2d721cbb929b79a7a0a.tar.bz2 samba-55e746ad560d4406821bc2d721cbb929b79a7a0a.zip |
r9477: Convert popt options to an ejs object. Doesn't seem to break anything
except of popt help (-h) option (unexpected ?).
rafal
(This used to be commit 1990793b23d6198a85ce1bdf6ad43e12015db203)
Diffstat (limited to 'source4/scripting/bin')
-rwxr-xr-x | source4/scripting/bin/smbstatus | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/bin/smbstatus b/source4/scripting/bin/smbstatus index 38f2ab06a9..d5610023d6 100755 --- a/source4/scripting/bin/smbstatus +++ b/source4/scripting/bin/smbstatus @@ -11,12 +11,12 @@ libinclude("management.js"); var options = new Object(); -ok = GetOptions(ARGV, options, +options = GetOptions(ARGV, "POPT_AUTOHELP", "POPT_COMMON_SAMBA", "POPT_COMMON_VERSION", "nbt"); -if (ok == false) { +if (options == undefined) { println("Failed to parse options: " + options.ERROR); return -1; } |