- switch (argv[1][1]) {
- case 'p': /* specified -p<hexpage> -- use given page number */
- sscanf (&argv[1][2], "%x", &pageno);
- if (pageno >= 0 && pageno <= 255) onepage = 1;
- break;
- case 'h': /* print HTML table instead of text table */
- html = 1;
- break;
- case 'l': /* print hyperlinks in HTML table */
- links = 1;
- html = 1;
- break;
+ plane = 0;
+ for (i = 1; i < argc; i++) {
+ switch (argv[i][1]) {
+ case 'p': /* specified -p<hexpage> -- use given page number */
+ sscanf (&argv[1][2], "%x", &pageno);
+ if (pageno >= 0 && pageno <= 255) onepage = 1;
+ break;
+ case 'h': /* print HTML table instead of text table */
+ html = 1;
+ break;
+ case 'l': /* print hyperlinks in HTML table */
+ links = 1;
+ html = 1;
+ break;
+ case 'P': /* Plane number specified */
+ plane = atoi(&argv[1][2]);
+ break;
+ }