Add support for int params
This commit is contained in:
parent
d2e4e02c3b
commit
af24b62e80
|
@ -8,7 +8,13 @@ proc parse*(T: type DirPath, p: TaintedString): T =
|
|||
result = DirPath(p)
|
||||
|
||||
template parse*(T: type string, s: TaintedString): string =
|
||||
string(s)
|
||||
string s
|
||||
|
||||
proc parse*(T: type SomeSignedInt, s: TaintedString): T =
|
||||
T parseInt(string s)
|
||||
|
||||
proc parse*(T: type SomeUnsignedInt, s: TaintedString): T =
|
||||
T parseUInt(string s)
|
||||
|
||||
proc load*(Configuration: type,
|
||||
cmdLine = commandLineParams(),
|
||||
|
|
Loading…
Reference in New Issue