diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-06-07 13:35:56 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-06-07 13:35:56 -0700 |
commit | faee5f9047d059e4f80370cd5c9caf57a88e9da9 (patch) | |
tree | 12f7dd270530640b0e8505cc13ea6470dfb285d7 | |
parent | 0337d7593355272d2fa554d19a49991d0f81fc4d (diff) | |
download | view.love-faee5f9047d059e4f80370cd5c9caf57a88e9da9.tar.gz |
warn on unused commandline args
-rw-r--r-- | main.lua | 4 |
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() |