diff options
author | Mika Havela <mika.havela@gmail.com> | 2008-01-24 20:27:13 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2008-01-24 20:27:13 +0000 |
commit | e79a601326453d9a9178b1890da7057aef77a333 (patch) | |
tree | e542f6d073a4c04a2eccdfa9e5d4e63e59d06012 | |
parent | fc5d46f1e65108fe894ce9649dd86342fa7b5daa (diff) | |
download | acf-core-e79a601326453d9a9178b1890da7057aef77a333.tar.bz2 acf-core-e79a601326453d9a9178b1890da7057aef77a333.tar.xz |
Fixed a bug when looking for where next parameter starts
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@644 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r-- | lib/getopts.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getopts.lua b/lib/getopts.lua index 4aa433c..e0e7469 100644 --- a/lib/getopts.lua +++ b/lib/getopts.lua @@ -38,7 +38,7 @@ function opts_to_table ( optstring, filter ) local option = "" local optvalue = "" for j = 1, string.len(optstr) do - if (string.sub(optstr, j, j) == "-") then + if (string.sub(optstr, j, j) == "-%a%s") then option=string.sub(optstr, j, j+1) if not (filter) or (filter == option) then for k = j+1, string.len(optstr) do |