diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2018-12-04 14:59:00 -0600 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2018-12-04 14:59:00 -0600 |
| commit | e77792ceb71cd85c2615d2f5136810bbd3cb302c (patch) | |
| tree | a832697499b44686da0a3b59f0a1f40c17165689 | |
| parent | cf2f200a16203311a3ac7595eb547b37fab5df82 (diff) | |
| download | nimterop-e77792ceb71cd85c2615d2f5136810bbd3cb302c.tar.gz nimterop-e77792ceb71cd85c2615d2f5136810bbd3cb302c.zip | |
Fix crash if no arguments
| -rw-r--r-- | toast.nim | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -121,7 +121,8 @@ proc main( defines: defines, includeDirs: includeDirs, ) - process(source[0]) + if source.len != 0: + process(source[0]) when isMainModule: import cligen |
