Commit cbb2614975baf4269ad0c7944520d2d96799a925
1 parent
3ef1be97
Fix command-line parsing for --rotate
Showing
1 changed file
with
5 additions
and
0 deletions
qpdf/qpdf.cc
| ... | ... | @@ -1337,6 +1337,11 @@ static void parse_options(int argc, char* argv[], Options& o) |
| 1337 | 1337 | } |
| 1338 | 1338 | else if (strcmp(arg, "rotate") == 0) |
| 1339 | 1339 | { |
| 1340 | + if (parameter == 0) | |
| 1341 | + { | |
| 1342 | + usage("--rotate must be given as" | |
| 1343 | + " --rotate=[+|-]angle:page-range"); | |
| 1344 | + } | |
| 1340 | 1345 | parse_rotation_parameter(o, parameter); |
| 1341 | 1346 | } |
| 1342 | 1347 | else if (strcmp(arg, "stream-data") == 0) | ... | ... |