PsIni
PsIni copied to clipboard
Please allow duplicate keys
For example, the php configuration file php.ini allows multiple same keys, such as extension=NAME1, extension=NAME2.
I suggest changing the output to something like this:
@(
@{
key = value
}
'comment line'
'comment line'
@{
key = value
}
# ...
)
Hmmm currently - it will add the first Key as a normal "key" and then on finding the second "duplicate" key within the same section - it will convert it to being a list of all the same key. So once they are written out, it would bunch them together again. so
key = value
# 'comment line'
# 'comment line'
key = value
# 'comment line'
would end up like this I believe
# 'comment line'
# 'comment line'
key = value
key = value
# 'comment line'