Example #1
0
        static int Main(string[] args)
        {
            try
            {
                Console.WriteLine("Fs2Svn: {0}", Assembly.GetExecutingAssembly().GetName().Version);

                Fs2SvnCommandLineArguments commandLineArgs = new Fs2SvnCommandLineArguments();
                if (!Parser.ParseArgumentsWithUsage(args, commandLineArgs))
                {
                    return(-1);
                }

                Console.WriteLine("From: {0}", commandLineArgs.Source);
                Console.WriteLine("To: {0}", commandLineArgs.Destination);

                FsCopy fsCopy = new FsCopy(commandLineArgs);
                fsCopy.Sync();
                return(0);
            }
            catch (Exception ex)
            {
                Console.Error.WriteLine(ex.Message);
#if DEBUG
                Console.Error.WriteLine(ex.StackTrace);
#endif
                return(-1);
            }
        }
Example #2
0
        static int Main(string[] args)
        {
            try
            {
                Console.WriteLine("Fs2Svn: {0}", Assembly.GetExecutingAssembly().GetName().Version);

                Fs2SvnCommandLineArguments commandLineArgs = new Fs2SvnCommandLineArguments();
                if (!Parser.ParseArgumentsWithUsage(args, commandLineArgs))
                    return -1;

                Console.WriteLine("From: {0}", commandLineArgs.Source);
                Console.WriteLine("To: {0}", commandLineArgs.Destination);

                FsCopy fsCopy = new FsCopy(commandLineArgs);
                fsCopy.Sync();
                return 0;
            }
            catch (Exception ex)
            {
                Console.Error.WriteLine(ex.Message);
#if DEBUG
                Console.Error.WriteLine(ex.StackTrace);
#endif
                return -1;
            }
        }