Esempio n. 1
0
        public static void Main(String[] args)
        {
            if (args.Length > 0)
            {
                switch (args[0])
                {
                case "-h":
                case "--help":
                    HelpPrinter.Run();
                    return;

                case "-b":
                case "--benchmark":
                    Benchmarks.Run();
                    return;

                default:
                    Console.WriteLine("Argument not found!");
                    Environment.Exit(-1);
                    return;
                }
            }

            Repl.Run();
        }
Esempio n. 2
0
        static void PrintHelp()
        {
            var output    = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
            var formatter = new MarkdownFormatter(output);

            HelpPrinter.Run(formatter);
        }
Esempio n. 3
0
        public static void Run(IFormatter formatter, Boolean flush = true)
        {
            var help = new HelpPrinter(formatter);
            help.PrintSections();

            if (flush)
            {
                help.Flush();
            }
        }
Esempio n. 4
0
        public static void Run(IFormatter formatter, Boolean flush = true)
        {
            var help = new HelpPrinter(formatter);

            help.PrintSections();

            if (flush)
            {
                help.Flush();
            }
        }