diff options
Diffstat (limited to 'main.nim')
-rw-r--r-- | main.nim | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -61,17 +61,20 @@ proc main() = | |||
61 | of "log10": scale = log10 | 61 | of "log10": scale = log10 |
62 | of "ln": scale = ln | 62 | of "ln": scale = ln |
63 | of "linear", "lin": scale = (val: float) => val | 63 | of "linear", "lin": scale = (val: float) => val |
64 | else: raise newException(ValueError, "Unrecognised scale choice") | ||
64 | 65 | ||
65 | of "symbols": | 66 | of "symbols": |
66 | case val: | 67 | case val: |
67 | of "unicode", "utf8", "utf-8": symbols = UNICODE_SYMBOLS | 68 | of "unicode", "utf8", "utf-8": symbols = UNICODE_SYMBOLS |
68 | of "numeric", "ascii": symbols = NUMERIC_SYMBOLS | 69 | of "numeric", "ascii": symbols = NUMERIC_SYMBOLS |
70 | else: raise newException(ValueError, "Unrecognised symbols choice") | ||
69 | 71 | ||
70 | of "timestamp": | 72 | of "timestamp": |
71 | case val: | 73 | case val: |
72 | of "datetime", "date-time": timestampHeader = formatTimestampDateTime | 74 | of "datetime", "date-time": timestampHeader = formatTimestampDateTime |
73 | of "unix", "epoch": timestampHeader = formatTimestampUnix | 75 | of "unix", "epoch": timestampHeader = formatTimestampUnix |
74 | of "none", "false": timestampHeader = formatTimestampNone | 76 | of "none", "false": timestampHeader = formatTimestampNone |
77 | else: raise newException(ValueError, "Unrecognised timestamp choice") | ||
75 | 78 | ||
76 | of "range": | 79 | of "range": |
77 | let parts = val.split(':', 1) | 80 | let parts = val.split(':', 1) |