diff --git a/src/_premake_main.lua b/src/_premake_main.lua index 8f27459d..99840385 100644 --- a/src/_premake_main.lua +++ b/src/_premake_main.lua @@ -41,7 +41,6 @@ -- can be picked up by the scripts. premake.action.set(_ACTION) - local action = premake.action.current() -- If there is a project script available, run it to get the -- project information, available options and actions, etc. @@ -50,6 +49,8 @@ -- Process special options + local action = premake.action.current() + if (_OPTIONS["version"]) then printf(versionhelp, _PREMAKE_VERSION) return 1