diff options
Diffstat (limited to 'cmdline/cmdline_parser.h')
-rw-r--r-- | cmdline/cmdline_parser.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cmdline/cmdline_parser.h b/cmdline/cmdline_parser.h index 86e3b2c7df..22eb44c211 100644 --- a/cmdline/cmdline_parser.h +++ b/cmdline/cmdline_parser.h @@ -755,10 +755,12 @@ void CmdlineParser<TVariantMap, TVariantMapKey>::DumpHelp(VariableIndentationOut vios.Stream(); } } - vios.Stream() << "The following arguments are ignored for compatibility:" << std::endl; - ScopedIndentation si(&vios); - for (auto ign : ignore_list_) { - vios.Stream() << ign << std::endl; + if (!ignore_list_.empty()) { + vios.Stream() << "The following arguments are ignored for compatibility:" << std::endl; + ScopedIndentation si(&vios); + for (auto ign : ignore_list_) { + vios.Stream() << ign << std::endl; + } } } |