about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-06-07 13:35:56 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-06-07 13:35:56 -0700
commitfaee5f9047d059e4f80370cd5c9caf57a88e9da9 (patch)
tree12f7dd270530640b0e8505cc13ea6470dfb285d7
parent0337d7593355272d2fa554d19a49991d0f81fc4d (diff)
downloadtext.love-faee5f9047d059e4f80370cd5c9caf57a88e9da9.tar.gz
warn on unused commandline args
-rw-r--r--main.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index 24632c1..8dc97fb 100644
--- a/main.lua
+++ b/main.lua
@@ -100,6 +100,10 @@ function App.initialize(arg)
     end
   end
   love.window.setTitle('Text with Lines - '..Filename)
+
+  if #arg > 1 then
+    print('ignoring commandline args after '..arg[1])
+  end
 end  -- App.initialize
 
 function initialize_window_geometry()