* @see org.zkybase.cmdb.cli.Command#parse(java.lang.String[])
*/
@Override
public Request parse(String[] tokens) {
if (tokens.length != 1) {
throw new ParseException("delete requires exactly one argument.");
}
DeleteRequest request = new DeleteRequest();
try {
request.id = Long.parseLong(tokens[0]);
} catch (NumberFormatException e) {
throw new ParseException("id must be an integer.");
}
return request;
}