having now looked at the getopt issue: > 2) the short options -d, -s, -p, -u, -P and -t do not work. The man page > and online help give: > dbconfig-load-include [-hv] [-a] [-d [varname]] [-u [varname]] [-p > [varname]] [-s [varname]] [-P [varname]] [-t [varname]] -f format infile > but here's what happens with e.g. -t: > $ dbconfig-load-include -t dbms -f php /etc/package/config.php > unable to read input file dbms > $ dbconfig-load-include -t=dbms -f php /etc/package/config.php > Parse error: parse error, unexpected '=', expecting T_VARIABLE or '$' > in - on line 21 > $ dbconfig-load-include --dbtype dbms -f php /etc/package/config.php > unable to read input file dbms > $ dbconfig-load-include --dbtype=dbms -f php /etc/package/config.php > dbc_dbtype='mysql'; > So only the last invocation works, but this way of calling is advertised > nowhere.
so it seems the way getopt(1) handles cmdline arguments is that if you have an argument that takes an optional argument (like -t [varname]), then the argument must immediately follow the cmdline flag (-t[varname]). some simple testing shows that this works, afaict. i'll commit changes to CVS right now to ammend the documentation. sean --
signature.asc
Description: Digital signature