Skip to content

Commit

Permalink
Change behavior to display help when executed without arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
mah0x211 committed Sep 28, 2023
1 parent df9c91d commit bde399a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func writeFile(file string, perm os.FileMode, src io.Reader) error {
}

func hasRequiredDirs() bool {
// create required directories
// check required directories
for _, dir := range []string{
LenvDir, SrcDir, LuaCfg.RootDir, LuaJitCfg.RootDir,
} {
Expand Down Expand Up @@ -239,9 +239,10 @@ func CheckLuaRocksRootDir() {
func start() {
argv := os.Args[1:]
if len(argv) == 0 {
checkInitialized()
CmdHelp(0)
} else if argv[0] != "setup" {
}

if argv[0] != "setup" {
checkInitialized()
}

Expand Down

0 comments on commit bde399a

Please sign in to comment.