Nini does not handle non-valued keys on INI files
Brought to you by:
bmatzelle
I've seen INI files with non-valued keys (we use them
at work) and even the MySQL style page you like to in
the manual shows an example of this,
http://dev.mysql.com/doc/refman/5.0/en/mysql-cluster-
config-example.html
[mysqld]
ndbcluster
ndb-connectstring=ndb_mgmd.mysql.com
The ndbcluster line does not have a value. Nini will
barf when it encounters this situation. I can
workaround this by using a '='
[mysqld]
ndbcluster=
ndb-connectstring=ndb_mgmd.mysql.com
Likewise, there is no way to create a key without a
value in XML. I haven't tried in other formats.
Logged In: YES
user_id=163900
This MySQL support was added in Nini 1.1. See the FAQ:
http://nini.sourceforge.net/faq.php#faq5