diff options
Diffstat (limited to 'main.nim')
-rw-r--r-- | main.nim | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -66,8 +66,10 @@ proc main() = | |||
66 | of "unicode", "utf8", "utf-8": symbols = UNICODE_SYMBOLS | 66 | of "unicode", "utf8", "utf-8": symbols = UNICODE_SYMBOLS |
67 | of "numeric", "ascii": symbols = NUMERIC_SYMBOLS | 67 | of "numeric", "ascii": symbols = NUMERIC_SYMBOLS |
68 | 68 | ||
69 | of "min": min = parseInt(val) | 69 | of "range": |
70 | of "max": max = parseInt(val) | 70 | let parts = val.split(':', 1) |
71 | if parts.len != 2: raise newException(ValueError, "Invalid range") | ||
72 | (min, max) = (parseInt(parts[0]), parseInt(parts[1])) | ||
71 | 73 | ||
72 | of "ping": | 74 | of "ping": |
73 | let targetIp = resolve(val) | 75 | let targetIp = resolve(val) |