Author: tridge
Date: 2005-08-26 11:37:52 +0000 (Fri, 26 Aug 2005)
New Revision: 9645

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9645

Log:
fixed the ejs GetOptions() call to look at the first option passed (this is 
what broke --help)



Modified:
   branches/SAMBA_4_0/source/scripting/ejs/smbcalls_options.c


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls_options.c
===================================================================
--- branches/SAMBA_4_0/source/scripting/ejs/smbcalls_options.c  2005-08-26 
11:37:09 UTC (rev 9644)
+++ branches/SAMBA_4_0/source/scripting/ejs/smbcalls_options.c  2005-08-26 
11:37:52 UTC (rev 9645)
@@ -82,7 +82,7 @@
        }
 
        /* create the long_options array */
-       for (i=2;i<argc;i++) {
+       for (i=1;i<argc;i++) {
                const char *optstr = mprToString(argv[i]);
                int t, opt_type = POPT_ARG_NONE;
                const char *s;

Reply via email to