From c4b13227d2892e6596e2dfb4a43d6783ed11c996 Mon Sep 17 00:00:00 2001 From: Hydroque Date: Sat, 6 Jan 2018 10:24:33 -0500 Subject: [PATCH] formatted the help dialog --- build.lua | 1 + src/consolew.c | 24 +++++++++++++----------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/build.lua b/build.lua index c649413..14ad0e0 100644 --- a/build.lua +++ b/build.lua @@ -6,6 +6,7 @@ if(plat == nil)then error("Please define plat as Windows, Linux, or MacOSX") end +require("luaadd") require("build_func") diff --git a/src/consolew.c b/src/consolew.c index 81dc74b..84861f6 100644 --- a/src/consolew.c +++ b/src/consolew.c @@ -67,18 +67,20 @@ const char HELP_MESSAGE[] = "\t- Built-in stack-dump\n" "\t- Line by Line interpretation\n" "\n" - "Usage: lua.exe [FILE_PATH] [-v] [-e] [-s START_PATH] [-p] [-a] [-c] [-Dvar=val] [-Lfilepath.lua] [-b[a,b,c]] [-?] [-n]{parameter1 ...} \n" + "Usage: luaw.exe [FILE_PATH] [-v] [-e] [-s START_PATH] [-p] [-a] [-c]\n" + "\t[-Dvar=val] [-Lfilepath.lua] [-b[a,b,c]] [-?] [-n]{parameter1 ...} \n" "\n" - "-v \t Prints the Lua version in use\n" - "-e \t Prevents lua core libraries from loading\n" - "-s \t Issues a new root path\n" - "-p \t Has console post exist after script in line by line mode\n" - "-c \t No copyright on init\n" - "-d \t Defines a global variable as value after '='\n" - "-l \t Executes a module before specified script or post-exist\n" - "-b[a,b,c] \t Load parameters arg differently. a=before passed -l's, b=give passed -l's a tuple, c=give passed file a tuple\n" - "-n \t Start of parameter section\n" - "-? \t Displays this help message\n"; + "-v \t\t Prints the Lua version in use\n" + "-e \t\t Prevents lua core libraries from loading\n" + "-s \t\t Issues a new root path\n" + "-p \t\t Has console post exist after script in line by line mode\n" + "-c \t\t No copyright on init\n" + "-d \t\t Defines a global variable as value after '='\n" + "-l \t\t Executes a module before specified script or post-exist\n" + "-b[a,b,c] \t Load parameters arg differently. a=before passed -l's,\n" + "\t\t\tb=give passed -l's a tuple, c=give passed file a tuple\n" + "-n \t\t Start of parameter section\n" + "-? \t\t Displays this help message\n";