libos: Show "Options:" label even if --help and --version are the only

options
This commit is contained in:
apio 2023-05-06 22:05:08 +02:00
parent cd86d1d6d0
commit b08ebdc3cb
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -275,7 +275,8 @@ namespace os
if (!m_description.is_empty()) { puts(m_description.chars()); } if (!m_description.is_empty()) { puts(m_description.chars()); }
if (m_switch_args.size() || m_value_args.size()) if (m_switch_args.size() || m_value_args.size() || m_add_long_help_flag || m_add_long_version_flag ||
m_add_short_help_flag || m_add_short_version_flag)
{ {
putchar('\n'); putchar('\n');
puts("Options:"); puts("Options:");