コード例 #1
0
ファイル: Main.cs プロジェクト: marcusanth/YAMP
        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();
        }
コード例 #2
0
ファイル: Main.cs プロジェクト: marcusanth/YAMP
        static void PrintHelp()
        {
            var output    = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
            var formatter = new MarkdownFormatter(output);

            HelpPrinter.Run(formatter);
        }
コード例 #3
0
ファイル: HelpPrinter.cs プロジェクト: FlorianRappl/YAMP
        public static void Run(IFormatter formatter, Boolean flush = true)
        {
            var help = new HelpPrinter(formatter);
            help.PrintSections();

            if (flush)
            {
                help.Flush();
            }
        }
コード例 #4
0
ファイル: HelpPrinter.cs プロジェクト: marcusanth/YAMP
        public static void Run(IFormatter formatter, Boolean flush = true)
        {
            var help = new HelpPrinter(formatter);

            help.PrintSections();

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