1
0
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:
Andrew Tridgell
2005-07-11 07:42:43 +00:00
committed by Gerald (Jerry) Carter
parent fc93ade9cd
commit 775fb56ac2
5 changed files with 204 additions and 27 deletions

View File

@@ -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;
}