]> granicus.if.org Git - re2c/commitdiff
Fix [999103] Invalid options prefixed with two dashes cause program crash
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Wed, 11 Aug 2004 21:16:07 +0000 (21:16 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Wed, 11 Aug 2004 21:16:07 +0000 (21:16 +0000)
main.cc

diff --git a/main.cc b/main.cc
index 2e35d67b3f4d5f9ab60f4438fe6ed0207a9cd034..310a0cac49ba52f4d7b856382976d5f99d6611c2 100644 (file)
--- a/main.cc
+++ b/main.cc
@@ -35,6 +35,7 @@ static const mbo_opt_struct OPTIONS[] =
         {'s', 0, "nested-ifs"},
         {'o', 1, "output"},
         {'v', 0, "version"}
+        {'-', 0, NULL} /* end of args */ 
     };
 
 static void usage()