diff options
author | Steve J Donovan <steve.j.donovan@gmail.com> | 2017-07-16 17:13:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-16 17:13:51 +0300 |
commit | 347aec310e1926d4a1317dc516a9dbfb6fd5216d (patch) | |
tree | e689b47f83f92274cf983a892320775d7b818c9f | |
parent | 81e004870997121d642e2b92bad2762f4b6e3beb (diff) | |
parent | 5ff83d69041325299ad565c220207d49d20ea293 (diff) |
Merge pull request #255 from doronbehar/patch-1
Fix error in 'pl.lapp.process_options_string'
-rw-r--r-- | lua/pl/lapp.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/pl/lapp.lua b/lua/pl/lapp.lua index fbeffd3..200c48f 100644 --- a/lua/pl/lapp.lua +++ b/lua/pl/lapp.lua @@ -313,8 +313,8 @@ function lapp.process_options_string(str,args) ps.converter = converter end ps.constraint = types[vtype].constraint - elseif not builtin_types[vtype] then - lapp.error(vtype.." is unknown type") + elseif not builtin_types[vtype] and vtype then + lapp.error(vtype.." is unknown type") end parms[optparm] = ps end |