private DocumentParserOptions ParseArgs(string[] args)
        {
            DocumentParserOptions options = new DocumentParserOptions();

            CommandLine.Parser.Default.ParseArguments(args, options);

            return(options);
        }
        private void Run(DocumentParserOptions options)
        {
            var builder = new DocumentionBuilder();

            builder.CreateDocumentation(options);

            Process.Start(options.OutputDirectory);
        }
        static void Main(string[] args)
        {
            Program p = new Program();

            DocumentParserOptions options = p.ParseArgs(args);

            p.Run(options);
        }
        static int Main(string[] args)
        {
            Program p = new Program();

            DocumentParserOptions options = p.ParseArgs(args);

            return(p.Run(options));
        }
        private int Run(DocumentParserOptions options)
        {
            var builder = new DocumentionBuilder();

            var success = builder.TryCreateDocumentation(options);

            if (success)
            {
                return(0);
            }
            else
            {
                if (Debugger.IsAttached)
                {
                    Console.WriteLine("Press enter to clode");
                    Console.ReadLine();
                }

                return(1);
            }
        }
 private static void WriteValueConsole(DocumentParserOptions options)
 {
     Console.WriteLine($"Args: {JsonConvert.SerializeObject(options, Formatting.Indented)}");
 }
 private void WriteValueDebug(DocumentParserOptions options)
 {
     Debug.Write($"Args: {JsonConvert.SerializeObject(options, Formatting.Indented)}");
 }