Skip to content

x = 'foo' x = 'bar' parsing #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
BenasPaulikas opened this issue Dec 20, 2014 · 7 comments
Closed

x = 'foo' x = 'bar' parsing #37

BenasPaulikas opened this issue Dec 20, 2014 · 7 comments

Comments

@BenasPaulikas
Copy link

Hello, in my .ini file I have

ServerPackages=Core
ServerPackages=Engine
....

After parsing it leaves only 1 ServerPackages line, how this can be fixed ?

@kodypeterson
Copy link

I think it needs to be:

ServerPackages[]=Core
ServerPackages[]=Engine

This is the way ini's arrays seem to work

@BenasPaulikas
Copy link
Author

Yeah, it would be great but the .ini file is provided by other application, I know it's dumb to assign multiple values to the same "variable", if I do name[] = value1 name[] = value2 app isn't working.

@kodypeterson
Copy link

I would suggest some sort of middle parser...

Something that would read the input add the [] and then pass it to the parser.

None the less probably not a problem with this library.

@BenasPaulikas
Copy link
Author

Can you reccommend such middle parser ? Or I should do it by hand like string.replace('ServerPackages','ServerPackages[]') ?

@hotamy
Copy link

hotamy commented Feb 3, 2016

I have same problem ...
Have solution it?

@isaacs
Copy link
Contributor

isaacs commented Feb 13, 2016

Duplicate of #52

(Technically #52 is a duplicate of this, but that's more clearly stated, and probably @robertkowalski will give you what you want :)

@isaacs isaacs closed this as completed Feb 13, 2016
@robertkowalski
Copy link

see here: #52 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants