diff --git a/Userland/Utilities/pdf.cpp b/Userland/Utilities/pdf.cpp index 38b9bcb089..83d8dc8f20 100644 --- a/Userland/Utilities/pdf.cpp +++ b/Userland/Utilities/pdf.cpp @@ -85,12 +85,12 @@ static PDF::PDFErrorOr pdf_main(Main::Arguments arguments) StringView in_path; args_parser.add_positional_argument(in_path, "Path to input image file", "FILE"); - StringView render_path; - args_parser.add_option(render_path, "Path to render a PDF page to", "render", {}, "PNG FILE"); - u32 page_number = 1; args_parser.add_option(page_number, "Page number (1-based)", "page", {}, "PAGE"); + StringView render_path; + args_parser.add_option(render_path, "Path to render a PDF page to", "render", {}, "PNG FILE"); + args_parser.parse(arguments); auto file = TRY(Core::MappedFile::map(in_path));