diff --git a/progdor2.lua b/progdor2.lua index d5c5bc6..f7136dd 100644 --- a/progdor2.lua +++ b/progdor2.lua @@ -353,7 +353,7 @@ end if argList["-h"] then return showHelp(true) -elseif argList["-a"] then +elseif argList["-a"] or (not shell) then mode = "api" elseif inputPath then exists = fs.exists(inputPath)