private static string GetAliases(ConsoleCommand cmd) { if (cmd.Aliases == null) { return("[no aliases]"); } string str = ""; for (int i = 0; i < cmd.Aliases.Length; i++) { str += cmd.Aliases[i]; if (i != (cmd.Aliases.Length - 1)) { str += ","; } } return(String.Format("[{0}]", str)); }
private static string GetAliases( ConsoleCommand cmd ) { if( cmd.Aliases == null ) return "[no aliases]"; string str = ""; for( int i = 0; i < cmd.Aliases.Length; i++ ) { str += cmd.Aliases[i]; if( i != (cmd.Aliases.Length - 1) ) str += ","; } return String.Format("[{0}]", str); }