mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
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
|
||||
public void handleRequest(final RestRequest request, final RestChannel channel) {
|
||||
try {
|
||||
boolean helpWanted = request.paramAsBoolean("h", false);
|
||||
boolean helpWanted = request.paramAsBoolean("h", request.paramAsBoolean("help", false));
|
||||
if (helpWanted) {
|
||||
channel.sendResponse(new StringRestResponse(RestStatus.OK, HELP));
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user