Skip to content

Commit bde399a

Browse files
committed
Change behavior to display help when executed without arguments
1 parent df9c91d commit bde399a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

main.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func writeFile(file string, perm os.FileMode, src io.Reader) error {
205205
}
206206

207207
func hasRequiredDirs() bool {
208-
// create required directories
208+
// check required directories
209209
for _, dir := range []string{
210210
LenvDir, SrcDir, LuaCfg.RootDir, LuaJitCfg.RootDir,
211211
} {
@@ -239,9 +239,10 @@ func CheckLuaRocksRootDir() {
239239
func start() {
240240
argv := os.Args[1:]
241241
if len(argv) == 0 {
242-
checkInitialized()
243242
CmdHelp(0)
244-
} else if argv[0] != "setup" {
243+
}
244+
245+
if argv[0] != "setup" {
245246
checkInitialized()
246247
}
247248

0 commit comments

Comments
 (0)