diff --git a/confutils/std/net.nim b/confutils/std/net.nim index b74b1a0..5100c8d 100644 --- a/confutils/std/net.nim +++ b/confutils/std/net.nim @@ -11,6 +11,13 @@ func completeCmdArg*(T: type ValidIpAddress, val: string): seq[string] = # TODO: Maybe complete the local IP address? @[] +func parseCmdArg*(T: type IpAddress, s: string): T = + parseIpAddress(s) + +func completeCmdArg*(T: type IpAddress, val: string): seq[string] = + # TODO: Maybe complete the local IP address? + @[] + func parseCmdArg*(T: type Port, s: string): T = template fail = raise newException(ValueError,