summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/getopts.lua2
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