[Mono-bugs] [Bug 62668][Wis] New - Invalid switched for mcs

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 7 Aug 2004 12:29:12 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by colin@breame.com.

http://bugzilla.ximian.com/show_bug.cgi?id=62668

--- shadow/62668	2004-08-07 12:29:12.000000000 -0400
+++ shadow/62668.tmp.4179	2004-08-07 12:29:12.000000000 -0400
@@ -0,0 +1,27 @@
+Bug#: 62668
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: colin@breame.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Invalid switched for mcs
+
+Using an invalid switch for mcs results in an incorrect error message:
+
+$ mcs -notavalidswitch *.cs
+error CS2001: Source file '-notavalidswitch' could not be opened
+Compilation failed: 1 error(s), 0 warnings
+
+It would be better if mcs noticed that the switch was invalid and reported
+with an appropriate message. e.g. "Unknown switch '-notavalidswitch'.  Use
+mcs --help for help" etc.