mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:07:43 +00:00
![]() I found it strange that `man` and `Help` did not accept the same command line arguments since they are so similar. So... now they do. :^) This means you can now open for example the `tar` man page in Help with `Help tar`, or `Help 1 tar` if you want to disambiguate between pages in different sections. If the result is not found, it falls back to the previous behavior, treating the input as a search query. Initially I had this written as two optional positional arguments, but when told to parse `[optional int] [optional string]`, and then given a string input, ArgsParser forwards it to the [optional int], which then fails to parse. Ideally it would pass it to the second, [optional string] arg instead, but that looks like a fairly big change to make to ArgsParser's internals, and risk breaking things. Maybe this ugly hack will be an incentive to fix it. :^) |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
History.cpp | ||
History.h | ||
main.cpp | ||
ManualModel.cpp | ||
ManualModel.h | ||
ManualNode.h | ||
ManualPageNode.cpp | ||
ManualPageNode.h | ||
ManualSectionNode.cpp | ||
ManualSectionNode.h |