support help as well as h in direct cat call to list all actions
This commit is contained in:
parent
565c212732
commit
86a883b4bf
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue