Example #1
0
        internal void ShowUsage()
        {
            CommandUI.PrintUpperCase(this.Name);
            if (this.UsageFunctor != null)
            {
                Console.WriteLine(this.UsageFunctor());
            }

            Console.WriteLine();
        }
Example #2
0
 void ShowUsageCommandNotFound(string commandName)
 {
     Console.WriteLine();
     CommandUI.PrintUpperCase("{0}:  No such command.", commandName);
     CommandUI.PrintSectionBreak();
     //
     // Speculatively print out names of commands with this prefix..
     //
     if (this.PrefixMatchCommandNames(commandName).FirstOrDefault() != null)
     {
         //
         // Speculatively print out names of commands with this prefix..
         //
         CommandUI.PrintHeading("Did you mean?");
         this.ListCommands(new string[] { commandName });
     }
     else
     {
         Console.WriteLine(HelpUsage);
     }
 }
Example #3
0
 internal void ShowCommand()
 {
     CommandUI.PrintUpperCase(this.Name);
 }