reports/Builder__ReportRunner.st
changeset 143 252c91b7f96d
parent 102 a63aa44303e3
child 144 b38e5af6b408
--- a/reports/Builder__ReportRunner.st	Mon Apr 08 10:50:48 2013 +0200
+++ b/reports/Builder__ReportRunner.st	Tue Apr 09 14:03:12 2013 +0200
@@ -157,25 +157,12 @@
 !ReportRunner class methodsFor:'startup-to be redefined'!
 
 main:argv
-    | argv2 |
-
-    "HACK - some options are not supported by eXept VM, filter them out
-     here so parameter parser won't complain about unsupported parameter"
+    "Process command line arguments"
 
-    argv2 := argv asOrderedCollection.
-    "/Following are not officially supported:
-    #(
-        '-abortOnSEGV' '-abortOnSegmentationViolation'
-        '-stopOnInternalError'
-    ) do:[:a|
-        argv2 remove: a ifAbsent:[]
-    ].
-
-    "Process command line arguments"
     parser := CmdLineParser new.
     [               
-        parser parse: argv2 for: self.        
-    ] on: Error do:[:ex|
+        parser parse: argv for: self.        
+    ] on:CmdLineOptionError do:[:ex|
         Stderr nextPutLine:'Error when processing options: ', ex description.
         debugging ifFalse:[     
             ex suspendedContext fullPrintAllOn: Stderr.
@@ -219,4 +206,5 @@
     ^ '§Id: Builder__ReportRunner.st 289 2011-11-10 15:39:10Z vranyj1 §'
 ! !
 
+
 ReportRunner initialize!