Add a configuration file parsing/loading #5
Labels
No labels
Tests
_core
_deployment
_libpyfcgi
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
yannweb/PyFCGI#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
for the moment no std libraries for configuration file parsing has been found... The idea is to implement a simple ini file parser.
Configuration files will be in flat-ini (no sections), using CLI options (long & short ? or just long ?) as key.
A file line will be composed like :
[KEY]'='[VALUE]'\n'Two types of value are allowed :
Note : This piece of code, with options + help definition, the help text generation, etc. should latter be extracted in a library allowing an unified CLI + configuration files handling.