rakyll / globalconf

Persist flag values into an ini file
273 stars 25 forks source link

No uppercase allowed? #9

Open ebuchman opened 10 years ago

ebuchman commented 10 years ago

I didn't seem to be able to get a flag with an uppercase letter in its name to work. Ie a config file like

myPort = 4444

is no good while

my_port = 4444

is fine.

rakyll commented 10 years ago

A bug, needs to be fixed. While writing to ini file, we should convert camel case to its equivalent with underscores and vice versa.

djmattyg007 commented 9 years ago

Instead of trying to specially parse keys, why not just stop lower-casing them? If you were to take that approach, and someone wanted to store snake-case keys in the config file, when they pulled them out they'd suddenly be camel-case.