Example #1
0
        public static int Main(string[] args)
        {
            Options opt = ParseOptions(args);

            try
            {
                if (opt.RunMode == Options.Mode.None)
                {
                    throw new Exception("起動スイッチが指定されていません。-all, -new, -retrieve のいずれかを指定してください。");
                }

                TimeExecuter tx = new TimeExecuter
                {
                    options = opt,
                };

                int ret = tx.Run();

                return(ret);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                Usage();
            }
            return(0);
        }
Example #2
0
        public static int Main(string[] args)
        {
            Options opt = ParseOptions(args);

                try
                {
                    if (opt.RunMode == Options.Mode.None)
                        throw new Exception("起動スイッチが指定されていません。-all, -new, -retrieve のいずれかを指定してください。");

                    TimeExecuter tx = new TimeExecuter
                    {
                        options = opt,

                    };

                    int ret =  tx.Run();

                    return ret;
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.Message);
                    Usage();
                }
                return 0;
        }