Browse Source

* Driver.cs: Exit with 1 return code when no arguments are supplied.

svn path=/trunk/mcs/; revision=14713
Jackson Harper 22 years ago
parent
commit
9756ef10f5
2 changed files with 6 additions and 3 deletions
  1. 4 0
      mcs/ilasm/ChangeLog
  2. 2 3
      mcs/ilasm/Driver.cs

+ 4 - 0
mcs/ilasm/ChangeLog

@@ -1,3 +1,7 @@
+2003-05-19 Jackson Harper <[email protected]>
+
+	* Driver.cs: Exit with 1 return code when no arguments are supplied.
+		
 2003-05-19 Jackson Harper <[email protected]>
 
 	* Driver.cs: Add command switch to delete output files created if

+ 2 - 3
mcs/ilasm/Driver.cs

@@ -58,10 +58,8 @@ namespace Mono.ILASM {
                         public void Run ()
                         {
                                 try {
-                                        if (il_file_list.Count == 0) {
+                                        if (il_file_list.Count == 0)
                                                 Usage ();
-                                                return;
-                                        }
                                         if (output_file == null)
                                                 output_file = CreateOutputFile ();
                                         codegen = new CodeGen (output_file, target == Target.Dll, true);
@@ -229,6 +227,7 @@ namespace Mono.ILASM {
                                         "   /exe               Compile to executable.\n" +
                                         "   /dll               Compile to library.\n" +
                                         "Options can be of the form -option or /option\n");
+                                Environment.Exit (1);
                         }
 
                         private void About ()