- Timestamp:
- 05/29/19 12:31:59 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2924_DotNetCoreMigration/HeuristicLab.CommandLineInterface/CLIConsole.cs
r16985 r16998 28 28 WriteHeader(cmdData); 29 29 30 if (exception != null) WriteErrors(exception);31 30 if (exception != null) WriteErrors(exception); 31 32 32 WriteSyntax(cmdData); 33 33 … … 62 62 Console.WriteLine($"ERROR(S):"); 63 63 AggregateException ae = exception as AggregateException; 64 if (ae != null) {65 foreach (var e in ae.InnerExceptions) {64 if (ae != null) { 65 foreach (var e in ae.InnerExceptions) { 66 66 Console.WriteLine($" -> {e} "); 67 67 } 68 68 } else { 69 69 Console.WriteLine($" -> {exception}"); 70 } 70 } 71 71 Console.WriteLine(); 72 72 } … … 94 94 WriteBoxSeparatorLine(); 95 95 foreach (OptionData opt in cmdData.Options) 96 WriteBoxLine( 97 ((opt.Shortcut != null) ? 98 $"{(OptionData.ShortcutPrefix + opt.Shortcut).ToLower() + ",",-ShortcutWidth}" : 99 $"" 100 ) + 101 $"{(OptionData.LongformPrefix + opt.Identifier).ToLower()}", 102 opt.Property?.PropertyType.GetPrettyName(), 103 opt.Description 104 ); 96 if (!opt.Hidden) 97 WriteBoxLine( 98 ((opt.Shortcut != null) ? 99 $"{(OptionData.ShortcutPrefix + opt.Shortcut).ToLower() + ",",-ShortcutWidth}" : 100 $"" 101 ) + 102 $"{(OptionData.LongformPrefix + opt.Identifier).ToLower()}", 103 opt.Property?.PropertyType.GetPrettyName(), 104 opt.Description 105 ); 105 106 WriteBoxSeparatorLine(); 106 107 }
Note: See TracChangeset
for help on using the changeset viewer.