SDL: testspriteminimal: don't allow any arguments

From 0268881e30efc9727276c9c4378b854cb161876a Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 16 Mar 2023 22:47:11 +0100
Subject: [PATCH] testspriteminimal: don't allow any arguments

---
 test/testspriteminimal.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/test/testspriteminimal.c b/test/testspriteminimal.c
index 51eb59451fe1..7a837de1b44d 100644
--- a/test/testspriteminimal.c
+++ b/test/testspriteminimal.c
@@ -103,6 +103,11 @@ int main(int argc, char *argv[])
     /* Enable standard application logging */
     SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
 
+    if (argc > 1) {
+        SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "USAGE: %s\n", argv[0]);
+        quit(1);
+    }
+
     if (SDL_CreateWindowAndRenderer(WINDOW_WIDTH, WINDOW_HEIGHT, 0, &window, &renderer) < 0) {
         quit(2);
     }