mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +00:00
Help+man+LibManual: Move argument handling to LibManual
This deduplicates argument handling logic from Help and man and makes it more modular for future use cases. The argument handling works as before: two arguments specify section and page (in this order), one argument specifies either a page (the first section that it's found in is used) or a path to a manpage markdown file.
This commit is contained in:
parent
64ca546a06
commit
b65258c093
Notes:
sideshowbarker
2024-07-17 03:26:56 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: b65258c093
Pull-request: https://github.com/SerenityOS/serenity/pull/14393
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/sin-ack
9 changed files with 149 additions and 125 deletions
|
@ -20,7 +20,7 @@ public:
|
|||
virtual ~MainWidget() override = default;
|
||||
|
||||
ErrorOr<void> initialize_fallibles(GUI::Window&);
|
||||
ErrorOr<void> set_start_page(StringView page, u32 section);
|
||||
ErrorOr<void> set_start_page(Vector<StringView, 2> query_parameters);
|
||||
|
||||
private:
|
||||
MainWidget();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue