public static int Execute(string[] args, ILogger customLogger = null) { if (args.Length == 0) { Console.Error.WriteLine("No parameters specified"); return(1); } if (!ProcessResponseFile(args, out var arguments)) { return(1); } try { using (Driver driver = new Driver(arguments)) { if (!driver.Run(customLogger)) { return(1); } } } catch { Console.Error.WriteLine("Fatal error in {0}", _linker); throw; } return(0); }
public static int Execute(string[] args, ILogger customLogger = null) { if (args.Length == 0) { Usage("No parameters specified"); } try { Driver driver = new Driver(args); driver.Run(customLogger); } catch { Console.Error.WriteLine("Fatal error in {0}", _linker); throw; } return(0); }
public static int Main(string [] args) { if (args.Length == 0) { Usage("No parameters specified"); } try { Driver driver = new Driver(args); driver.Run(); } catch (Exception e) { Console.WriteLine("Fatal error in {0}", _linker); Console.WriteLine(e); return(1); } return(0); }
public static int Main (string [] args) { if (args.Length == 0) Usage ("No parameters specified"); try { Driver driver = new Driver (args); driver.Run (); } catch (Exception e) { Console.WriteLine ("Fatal error in {0}", _linker); Console.WriteLine (e); return 1; } return 0; }