From 1278ff899409025692d6915421f1af1c99dc837e Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Tue, 11 Jul 2017 14:11:54 -0500 Subject: Responded to PR comments. --- tools/upbc.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/upbc.lua') diff --git a/tools/upbc.lua b/tools/upbc.lua index bf9a68d..bfd93f8 100644 --- a/tools/upbc.lua +++ b/tools/upbc.lua @@ -18,6 +18,10 @@ for _, argument in ipairs(arg) do if argument == "--generate-upbdefs" then generate_upbdefs = true else + if src then + print("upbc can only handle one input file at a time.") + return 1 + end src = argument end end -- cgit v1.2.3