public void CheckArguments() { foreach (var m in RegisteredArguments.Where(ar => ar.Madatory)) { GetMandatoryArgument(m.Name, "Mandatory argument -{0} is missing", m.Name); } if (InvalidArgs.Count() > 0) { foreach (var s in InvalidArgs) { Console.WriteLine("Invalid Argument '{0}'", s); } Environment.Exit(usage()); } }
private void Handle(InvalidArgs msg) { IncrementMessagesReceived(); m_vm.Status = msg.ErrorMessage; m_vm.Crawling = false; }