From e79a601326453d9a9178b1890da7057aef77a333 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Thu, 24 Jan 2008 20:27:13 +0000 Subject: 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 --- lib/getopts.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3