From 16c1a6a447bc3f2da63cf6c5a0addbf2291cd51e Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 12 Jul 2023 09:32:44 -0400 Subject: [PATCH] pdf: Alphabetize options --- Userland/Utilities/pdf.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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));