private static int Run(string[] args) { var commands = CommandsList.Commands; if (commands.ContainsKey(args[0])) { return(commands[args[0]].Run(args)); } if (CementSettings.Get().UserCommands.ContainsKey(args[0])) { return(new UserCommand().Run(args)); } ConsoleWriter.WriteError("Bad command: '" + args[0] + "'"); return(-1); }
public BuildSectionParser() : this(CementSettings.Get()) { }