libos: Show "Options:" label even if --help and --version are the only
options
This commit is contained in:
parent
cd86d1d6d0
commit
b08ebdc3cb
@ -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:");
|
||||||
|
Loading…
Reference in New Issue
Block a user