コード例 #1
0
        public void WriteHelp(IConsoleCommand comm)
        {
            Console.WriteLine($"Help for command: '{comm.Keyword?.ToUpper() ?? "Unknown"}'");
            var to = new TabularOutput(77);
            foreach (var sig in comm.Signatures)
            {
                to.AddRow(comm.Keyword, sig.GetHelp(), ":", sig.Description);
            }

            WriteTable(to);
        }
コード例 #2
0
        public void WriteHelp(IConsoleCommand comm)
        {
            Console.WriteLine($"Help for command: '{comm.Keyword?.ToUpper() ?? "Unknown"}'");
            var to = new TabularOutput(77);

            foreach (var sig in comm.Signatures)
            {
                to.AddRow(comm.Keyword, sig.GetHelp(), ":", sig.Description);
            }

            WriteTable(to);
        }