コード例 #1
0
ファイル: Program.cs プロジェクト: jlyonsmith/CSharpTools
        public static int Main(string[] args)
        {
            SpacerTool tool = new SpacerTool();

            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;
            }
        }
コード例 #2
0
        public static int Main(string[] args)
        {
            SpacerTool tool = new SpacerTool();

            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);
            }
        }