You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When updating from Penlight 0.8.x to 1.0.1 our scripts broke because our argument ended in a number. For an example lapp string see below. Notice the --premake4. It converts automatically the premake4 to premake_ which is unexpected.
lapp string example
localargs=lapp[[ Builds the current project. Run from the root level. -t,--target (string) One of the following: vs2005, vs2008, gnu, or gmake. -b,--build (default Release) Project-specific build configuration, usually Debug or Release. -i,--installer (default none) One of the following: inno or nsis. -f,--installerfile (default none) The installer source file to pass to the installer, if needed. -p,--premake (default none) Extra options passed on to premake. -m,--teamcity (default true) Enable teamcity output. -c,--clean Clean project sources before building. -q,--premake4 Use premake4]]
The text was updated successfully, but these errors were encountered:
I think I have a fix for this as well. The gsub() pattern was for everything but alpha characters, but it should be everything but alphanumeric characters.
lapp.lua@208
optparm=res.long:gsub('%A','_') -- so foo-bar becomes foo_bar in Lua
Changes To
optparm=res.long:gsub('%W','_') -- so foo-bar becomes foo_bar in Lua
When updating from Penlight 0.8.x to 1.0.1 our scripts broke because our argument ended in a number. For an example lapp string see below. Notice the
--premake4
. It converts automatically thepremake4
topremake_
which is unexpected.lapp string example
The text was updated successfully, but these errors were encountered: