mirror of
https://github.com/samba-team/samba.git
synced 2025-10-30 08:23:49 +03:00
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 commit is contained in:
committed by
Gerald (Jerry) Carter
parent
fc93ade9cd
commit
775fb56ac2
@@ -108,6 +108,9 @@ struct MprVar mprList(const char *name, const char **list)
|
||||
for (i=0;list && list[i];i++) {
|
||||
mprAddArray(&var, i, mprCreateStringVar(list[i], 1));
|
||||
}
|
||||
if (i==0) {
|
||||
mprSetVar(&var, "length", mprCreateIntegerVar(i));
|
||||
}
|
||||
return var;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user