diff --git a/include/CLI/App.hpp b/include/CLI/App.hpp index 64ee2928..8249703d 100644 --- a/include/CLI/App.hpp +++ b/include/CLI/App.hpp @@ -842,11 +842,11 @@ class App { } if (value.size() != 0) { - if (write_description and opt->description_.size() != 0) { + if (write_description && opt->has_description()) { if (out.tellp() != 0) { out << std::endl; } - out << "; " << opt->description_ << std::endl; + out << "; " << opt->get_description() << std::endl; } out << name << "=" << value << std::endl; }