support help as well as h in direct cat call to list all actions

This commit is contained in:
Shay Banon 2014-02-18 21:54:59 +02:00
parent 565c212732
commit 86a883b4bf
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ public class RestCatAction extends BaseRestHandler {
@Override @Override
public void handleRequest(final RestRequest request, final RestChannel channel) { public void handleRequest(final RestRequest request, final RestChannel channel) {
try { try {
boolean helpWanted = request.paramAsBoolean("h", false); boolean helpWanted = request.paramAsBoolean("h", request.paramAsBoolean("help", false));
if (helpWanted) { if (helpWanted) {
channel.sendResponse(new StringRestResponse(RestStatus.OK, HELP)); channel.sendResponse(new StringRestResponse(RestStatus.OK, HELP));
} else { } else {