mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibCore: Offer to display a general description
This commit is contained in:
committed by
Andreas Kling
parent
886b43e999
commit
52a8062084
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user