staffanm / layeredconfig

Manages configuration coming from config files, environment variables, command line arguments, code defaults or other sources
BSD 3-Clause "New" or "Revised" License
18 stars 8 forks source link

Commandline doesn't respect sectionsep parameter as expected #13

Closed dginzbourg closed 4 years ago

dginzbourg commented 6 years ago

Hi First of all - I really like this project, it saved a lot of time and made working with configuration in dockers much easier, many thanks to you. I tried to use command line parser, to pass parameter like log.rotationsize=100 with sectionsep='.', but it splits everything by ''. I checked the code and '' is just hardcoded. The same parameter naming convention works fine in Environment. I replaced '' with self.sectoinsep in commandline.py and it works great. Any particular reason why you put '_' hardcoded in Commandline? If not, can it be fixed? thanks

staffanm commented 4 years ago

This has been fixed in the just-released 0.3.3 version. Sorry about the long delay!