Swap help and headers params.

This commit is contained in:
Andrew Raines 2014-01-03 17:56:37 -06:00
parent cf81e19cce
commit 38894632c3
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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)) {