static Action GetAction (string arg)
{
Action action = Action.None;
switch (GetCommand (arg)) {
case "ADD":
action = Action.Add;
break;
case "DEL":
case "DELETE":
action = Action.Delete;
break;
case "PUT":
action = Action.Put;
break;
case "LST":
case "LIST":
action = Action.List;
break;
case "SSL":
case "TLS":
action = Action.Ssl;
break;
case "IMPORTKEY":
action = Action.ImportKey;
break;
}
return action;
}