public void AddXmlRpcLogin(ConsoleCommand command) { command.HasOption("rpc=", "Url of wordpress XML-RPC endpoint (example: http://joeblogstest.alexjamesbrown.com/xmlrpc.php)", v => XmlRpcUrl = v); command.HasOption("u=", "Username", v => Username = v); command.HasOption("p=", "Password", v => Password = v); }
public void ApplyTo(ConsoleCommand command) { FindAndLoadCredentialsIfAvailable(); if (string.IsNullOrEmpty(Username)) { ApplyWithoutCheckingFile(command); } else { command.HasOption("u=", string.Format("Username (default is {0})", Username), v => Username = v); command.HasOption("s=", string.Format("Secret key (default is for {0})", Username), v => Secret = v); } }
public void ApplyTo(ConsoleCommand command) { command.HasOption("e=", "Endpoint url used for requests.", v => Endpoint = v); Credentials = new ApiCredentialParameters(); Credentials.ApplyTo(command); }