From dc384b9c3cbaa08c009d4de2a465d3bd337aa42b Mon Sep 17 00:00:00 2001 From: XDuskAshes Date: Mon, 27 May 2024 00:43:51 -0400 Subject: [PATCH] [FIX] Help flag --- stitch.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stitch.lua b/stitch.lua index 6b293f9..87541a4 100644 --- a/stitch.lua +++ b/stitch.lua @@ -3,6 +3,14 @@ -- Licensed under the MIT License - local args = {...} + +if #args < 1 or args[1] == "help" then + print("Stitch - Efficient file cobbler") + print("Usage:\n stitch ") + print("You should point it to a Stitch-compatible JSON file. See docs for more details:\n ") + return +end + local ver = 1.0 local jsonfile = args[1] local toLog = {}