diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-11 07:42:43 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:20:05 -0500 |
commit | f583a85d4d520b0ab6ca83efd36e71563108b370 (patch) | |
tree | f3d6bfd4e4100402a88cc1040860652905bd6eac /source4/scripting/ejs/smbcalls.c | |
parent | 9ab58c5e0127a66ae79cb867cfcf271734241b3d (diff) | |
download | samba-f583a85d4d520b0ab6ca83efd36e71563108b370.tar.gz samba-f583a85d4d520b0ab6ca83efd36e71563108b370.tar.bz2 samba-f583a85d4d520b0ab6ca83efd36e71563108b370.zip |
r8316: give full access to the popt command line parsing in ejs scripts, including
access to the samba common options. For example:
ok = GetOptions(ARGV, options,
"POPT_AUTOHELP",
"POPT_COMMON_SAMBA",
"myopt=s",
"intopt=i",
"noopt");
this allows scripts to support their own extended options properly
(This used to be commit 775fb56ac287b8d485b38f633b9480d7b7ab64e3)
Diffstat (limited to 'source4/scripting/ejs/smbcalls.c')
-rw-r--r-- | source4/scripting/ejs/smbcalls.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/scripting/ejs/smbcalls.c b/source4/scripting/ejs/smbcalls.c index 1abbb52819..328bd14ab5 100644 --- a/source4/scripting/ejs/smbcalls.c +++ b/source4/scripting/ejs/smbcalls.c @@ -122,6 +122,7 @@ void smb_setup_ejs_functions(void) smb_setup_ejs_cli(); smb_setup_ejs_rpc(); smb_setup_ejs_auth(); + smb_setup_ejs_options(); ejsDefineCFunction(-1, "typeof", ejs_typeof, NULL, MPR_VAR_SCRIPT_HANDLE); ejsDefineStringCFunction(-1, "libinclude", ejs_libinclude, NULL, MPR_VAR_SCRIPT_HANDLE); |