public static int Main()

in jet-symbols/src/JetBrains.CommandLine.Symbols/Program.cs [14:37]


    public static int Main(string[] args)
    {
      AppDomain.CurrentDomain.UnhandledException += (sender, eventArgs) =>
      {
        Console.Error.WriteLine(String.Format("Unhandled excpetion: " + eventArgs.ExceptionObject));
      };

      try
      {
        string error;
        var commandToExecute = GetCommandToExecute(args, out error);
        if (commandToExecute != null)
        {
          return commandToExecute.Execute();
        }
        PrintIncorrectUsageMessage(error);
        return ERROR_EXIT_CODE;
      }
      catch (Exception ex)
      {
        Console.Error.WriteLine(ex);
        return ERROR_EXIT_CODE;
      }
    }