Changeset 759 for branches/eraser6/Eraser/Program.cs
- Timestamp:
- 12/9/2008 8:40:30 AM (5 years ago)
- File:
-
- 1 edited
-
branches/eraser6/Eraser/Program.cs (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/Eraser/Program.cs
r756 r759 41 41 /// </summary> 42 42 [STAThread] 43 static voidMain(string[] commandLine)43 static int Main(string[] commandLine) 44 44 { 45 45 //Trivial case: no command parameters … … 57 57 else 58 58 { 59 CommandMain(commandLine);59 return CommandMain(commandLine); 60 60 } 61 61 } … … 63 63 //The other trivial case: definitely a console application. 64 64 else 65 CommandMain(commandLine); 65 return CommandMain(commandLine); 66 67 //No error. 68 return 0; 66 69 } 67 70 … … 70 73 /// </summary> 71 74 /// <param name="commandLine">The command line parameters passed to Eraser.</param> 72 private static voidCommandMain(string[] commandLine)75 private static int CommandMain(string[] commandLine) 73 76 { 74 77 //True if the user specified a quiet command. … … 82 85 using (ManagerLibrary library = new ManagerLibrary(new Settings())) 83 86 program.Run(); 87 88 return 1; 84 89 } 85 90 catch (Exception e)
Note: See TracChangeset
for help on using the changeset viewer.
