1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

pdf: Alphabetize options

This commit is contained in:
Nico Weber 2023-07-12 09:32:44 -04:00 committed by Tim Flynn
parent afb99a67b2
commit 16c1a6a447

View file

@ -85,12 +85,12 @@ static PDF::PDFErrorOr<int> 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));