2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-31 14:01:59 +00:00

Fix command-line parsing for --rotate

This commit is contained in:
Jay Berkenbilt 2017-09-07 16:49:11 -04:00
parent 3ef1be9783
commit cbb2614975

View File

@ -1337,6 +1337,11 @@ static void parse_options(int argc, char* argv[], Options& o)
}
else if (strcmp(arg, "rotate") == 0)
{
if (parameter == 0)
{
usage("--rotate must be given as"
" --rotate=[+|-]angle:page-range");
}
parse_rotation_parameter(o, parameter);
}
else if (strcmp(arg, "stream-data") == 0)