diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-01-14 18:00:59 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-01-14 18:01:06 -0800 |
| commit | 706811fed4a91d90a61530fc4c790303d41c566d (patch) | |
| tree | 595c77ad2d1d0012a77670162ce0442e38e2c334 /nomsu.lua | |
| parent | fb19d1af1155fa45a04b1f68b2254da551a3e780 (diff) | |
Added warning for nomsu -c foo.lua
Diffstat (limited to 'nomsu.lua')
| -rw-r--r-- | nomsu.lua | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -173,6 +173,9 @@ run = function() nomsu_environment._1_parsed(NomsuCode:from(source, code)) print("Parse succeeded: " .. tostring(filename)) elseif args.compile then + if filename:match("%.lua$") then + error("Cannot compile a lua file (expected a nomsu file as input)") + end local output if filename == 'stdin' then output = io.output() |
