Fix search command page number

This commit is contained in:
Luck 2017-01-30 20:08:48 +00:00
parent a61d3b3fd4
commit da23b6ea9a
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -58,9 +58,9 @@ public class SearchCommand extends SingleCommand {
String query = args.get(0);
int page = 1;
if (args.size() > 0) {
if (args.size() > 1) {
try {
page = Integer.parseInt(args.get(0));
page = Integer.parseInt(args.get(1));
} catch (NumberFormatException e) {
// ignored
}