} catch (IllegalArgumentException e) {
System.err.println(e.getMessage());
helpAndDie(1);
}
CliHandler requestHandler = null;
if (p.help) {
helpAndDie(0);
} else if (p.exports) {
requestHandler = exportHandler;
} else if (p.version) {
requestHandler = versionHandler;
} else if (p.status) {
requestHandler = statusHandler;
} else if (p.fetch) {
requestHandler = fetchHandler;
} else if (p.publish) {
requestHandler = publishHandler;
} else if (p.delete != null) {
requestHandler = deleteHandler;
} else if (p.clean) {
requestHandler = cleanHandler;
} else {
helpAndDie(0);
}
requestHandler.handle();
}