Beispiel #1
0
        private static void ShowHelp(IReadOnlyList <CommandLineOption> options)
        {
            Terminal.WriteLine("The best companion for the command line adventurer.");
            Terminal.WriteLine();

            var          flagColumnsSize = CommandLineOption.ComputeFlagsColumnSize(options);
            const string indent          = "  ";
            const int    lineLength      = 120;

            foreach (var option in options)
            {
                option.Write(indent, flagColumnsSize, lineLength);
            }

            Terminal.WriteLine();
        }