main: Add long form of -d: --script-dir

Tue, 11 Sep 2018 21:39:56 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 11 Sep 2018 21:39:56 +0100
changeset 132
e6df4368029d
parent 131
2d19fdddb9ee
child 133
e087dd875160

main: Add long form of -d: --script-dir

main.lua file | annotate | diff | comparison | revisions
--- a/main.lua	Tue Sep 11 21:34:22 2018 +0100
+++ b/main.lua	Tue Sep 11 21:39:56 2018 +0100
@@ -84,7 +84,7 @@
 		elseif opt == "--quiet" or opt == "-q" then
 			verse_log_levels = { "error" };
 			quiet = true;
-		elseif opt == "-d" then
+		elseif opt == "--script-dir" or opt == "-d" then
 			local have_lfs, lfs = pcall(require, "lfs");
 			if not have_lfs then
 				error("The '-d' parameter requires LuaFileSystem (lfs), please make sure this library is available");

mercurial