diff options
Diffstat (limited to 'Libraries/LibCore/ArgsParser.cpp')
-rw-r--r-- | Libraries/LibCore/ArgsParser.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Libraries/LibCore/ArgsParser.cpp b/Libraries/LibCore/ArgsParser.cpp index bef5515420..16583b9012 100644 --- a/Libraries/LibCore/ArgsParser.cpp +++ b/Libraries/LibCore/ArgsParser.cpp @@ -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) { |