Swap help and headers params.
This commit is contained in:
parent
cf81e19cce
commit
38894632c3
|
@ -41,7 +41,7 @@ public abstract class AbstractCatAction extends BaseRestHandler {
|
|||
|
||||
@Override
|
||||
public void handleRequest(final RestRequest request, final RestChannel channel) {
|
||||
boolean helpWanted = request.paramAsBoolean("h", false);
|
||||
boolean helpWanted = request.paramAsBoolean("help", false);
|
||||
if (helpWanted) {
|
||||
Table table = getTableWithHeader(request);
|
||||
int[] width = buildHelpWidths(table, request, false);
|
||||
|
|
|
@ -90,7 +90,7 @@ public class RestTable {
|
|||
}
|
||||
|
||||
private static List<DisplayHeader> buildDisplayHeaders(Table table, RestRequest request) {
|
||||
String pHeaders = request.param("headers");
|
||||
String pHeaders = request.param("h");
|
||||
List<DisplayHeader> display = new ArrayList<DisplayHeader>();
|
||||
if (pHeaders != null) {
|
||||
for (String possibility : Strings.splitStringByCommaToArray(pHeaders)) {
|
||||
|
|
Loading…
Reference in New Issue