mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-24 19:21:52 +00:00
LibCore: Offer to display a general description
This commit is contained in:
parent
886b43e999
commit
52a8062084
Notes:
sideshowbarker
2024-07-19 01:02:24 +09:00
Author: https://github.com/BenWiederhake
Commit: 52a8062084
Pull-request: https://github.com/SerenityOS/serenity/pull/4332
2 changed files with 8 additions and 0 deletions
|
@ -206,6 +206,11 @@ void ArgsParser::print_usage(FILE* file, const char* argv0)
|
|||
}
|
||||
outln(file);
|
||||
|
||||
if (m_general_help != nullptr && m_general_help[0] != '\0') {
|
||||
outln(file, "\nDescription:");
|
||||
outln(file, m_general_help);
|
||||
}
|
||||
|
||||
if (!m_options.is_empty())
|
||||
outln(file, "\nOptions:");
|
||||
for (auto& opt : m_options) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue