Fix action check to work with new interactive prompt

This commit is contained in:
Jason Perkins 2014-05-13 19:34:53 -04:00
parent b722cfef29
commit 537cd73591

View File

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