/// <summary> /// Display the main offline help screen. /// </summary> private static void ShowHelp() { Console.Write("usage: git "); Console.Write(string.Join(" ", options.Select(o => "[--" + string.Join("|-", o.Names) + "]").ToArray())); Console.WriteLine("\nCOMMAND [ARGS]\n\nThe most commonly used git commands are:"); options.WriteOptionDescriptions(Console.Error); Console.WriteLine(); CommandCatalog catalog = new CommandCatalog(); foreach (CommandRef c in catalog.Common()) { Console.Write(" "); Console.Write(c.getName()); for (int i = c.getName().Length + 8; i < 31; i++) { Console.Write(" "); } Console.Write(c.getUsage()); Console.WriteLine(); } Console.Error.WriteLine(); Console.Error.Write(@"See 'git help COMMAND' for more information on a specific command."); }
/// <summary> /// Display the main offline help screen. /// </summary> private static void ShowHelp() { Console.Write("usage: git "); Console.Write(string.Join(" ", options.Select(o => "[--" + string.Join("|-", o.Names) + "]").ToArray())); Console.WriteLine("\nCOMMAND [ARGS]\n\nThe most commonly used git commands are:"); options.WriteOptionDescriptions(Console.Error); Console.WriteLine(); CommandCatalog catalog = new CommandCatalog(); foreach (CommandRef c in catalog.Common()) { Console.Write(" "); Console.Write(c.getName()); for (int i = c.getName().Length + 8; i < 31; i++) Console.Write(" "); Console.Write(c.getUsage()); Console.WriteLine(); } Console.Error.WriteLine(); Console.Error.Write(@"See 'git help COMMAND' for more information on a specific command."); }