diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2019-01-23 20:46:01 -0600 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2019-01-23 20:46:01 -0600 |
| commit | 1a8e489b0f27c622f1eb65d6794b187e1f953c3e (patch) | |
| tree | abcfbb4d488695485652433fb1b6e1c779d652f6 | |
| parent | 2cec3015edb78bbaf96bf8304ef7e4697ddb1a37 (diff) | |
| download | nimterop-1a8e489b0f27c622f1eb65d6794b187e1f953c3e.tar.gz nimterop-1a8e489b0f27c622f1eb65d6794b187e1f953c3e.zip | |
Handle cligen split issue
| -rw-r--r-- | nimterop/getters.nim | 6 | ||||
| -rw-r--r-- | toast.nim | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/nimterop/getters.nim b/nimterop/getters.nim index 3b925ea..24e250d 100644 --- a/nimterop/getters.nim +++ b/nimterop/getters.nim @@ -1,4 +1,4 @@ -import macros, os, sets, strformat, strutils, tables +import macros, os, sequtils, sets, strformat, strutils, tables import regex @@ -303,3 +303,7 @@ proc getNimExpression*(expr: string): string = ("^", " xor "), ("&", " and "), ("|", " or "), ("~", " not ") ]) + +proc getSplitComma*(joined: seq[string]): seq[string] = + for i in joined: + result = result.concat(i.split(","))
\ No newline at end of file @@ -129,6 +129,10 @@ proc main( symOverride: symOverride ) + when defined(Windows): + # Workaround https://github.com/c-blake/cligen/issues/87 + gStateRT.symOverride = gStateRT.symOverride.getSplitComma() + if pgrammar: parseGrammar() printGrammar() |
