nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2544fb9
)
config: Update to new INI api
author
Alexandre Terrasa
<alexandre@moz-code.org>
Sat, 15 Jun 2019 18:55:35 +0000
(14:55 -0400)
committer
Alexandre Terrasa
<alexandre@moz-code.org>
Tue, 18 Jun 2019 23:13:25 +0000
(19:13 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
lib/config/config.nit
patch
|
blob
|
history
diff --git
a/lib/config/config.nit
b/lib/config/config.nit
index
da03f7c
..
f07ec47
100644
(file)
--- a/
lib/config/config.nit
+++ b/
lib/config/config.nit
@@
-299,7
+299,7
@@
class IniConfig
super Config
# Config tree used to store config options
- var ini: ConfigTree is noinit
+ var ini: IniFile is noinit
# Path to app config file
var opt_config = new OptionString("Path to config file", "--config")
@@
-311,7
+311,7
@@
class IniConfig
redef fun parse_options(args) do
super
- ini = new ConfigTree(config_file)
+ ini = new IniFile.from_file(config_file)
end
# Default config file path