Example #1
0
        public static int Main(string[] args)
        {
            var options = new CommandLineOptions();
            if (Parser.Default.ParseArguments(args, options))
            {
                try
                {
                    var versioner = new Versioner(new FileSystem(), new ConsoleOutput());
                    versioner.SetVersion(options.ProjectPath, options.DefaultVersion, options.AdditionalInfo);
                    return 0;
                }
                catch (Exception exception)
                {
                    Console.WriteLine(exception);
                }
            }

            return -1;
        }