Exemplo n.º 1
0
        static int Main(string[] args)
        {
            StrapperTool tool = new StrapperTool();

            try
            {
                tool.ProcessCommandLine(args);

                tool.Execute();
                return(tool.HasOutputErrors ? 1 : 0);
            }
            catch (Exception e)
            {
                while (e != null)
                {
                    ConsoleUtility.WriteMessage(MessageType.Error, e.Message);
                    e = e.InnerException;
                }
                return(1);
            }
        }
Exemplo n.º 2
0
        static int Main(string[] args)
        {
            StrapperTool tool = new StrapperTool();

            try
            {
                tool.ProcessCommandLine(args);

               tool.Execute();
                return (tool.HasOutputErrors ? 1 : 0);
            }
            catch (Exception e)
            {
                while (e != null)
                {
                    ConsoleUtility.WriteMessage(MessageType.Error, e.Message);
                    e = e.InnerException;
                }
                return 1;
            }
        }