Skip to content

Commit fe50ff1

Browse files
committed
closes tabulapdf#18
1 parent bfb40ae commit fe50ff1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/technology/tabula/CommandLineApp.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ static void extractTables(CommandLine line) throws ParseException {
108108
verticalRulingPositions = parseFloatList(line.getOptionValue('c'));
109109
}
110110

111-
List<Integer> pages = Utils.parsePagesOption(line.getOptionValue('p'));
111+
String pagesOption = line.hasOption('p') ? line.getOptionValue('p') : "1";
112+
List<Integer> pages = Utils.parsePagesOption(pagesOption);
112113
ExtractionMethod method = whichExtractionMethod(line);
113114
boolean useLineReturns = line.hasOption('u');
114115

0 commit comments

Comments
 (0)