static void PrintHelp() { Runnable.PrintVersion(); System.Console.WriteLine("Net - Network component\r\n"); var builder = new StringBuilder(); CommandLineParser.GetFields(typeof(NetConsoleOption)).ToList().ForEach( x => { if (!string.IsNullOrEmpty(x.Value.Item2.Info)) { builder.Append($" {x.Key} : {x.Value.Item2.Info} [{x.Value.Item2.Help}]\r\n"); } else { builder.Append($" {x.Key} [{x.Value.Item2.Help}]\r\n"); } }); System.Console.WriteLine(builder.ToString()); }