From 987ea1f64e17f56994c25f888e467d908553f4fb Mon Sep 17 00:00:00 2001 From: Jonas Nilsson Date: Thu, 21 Dec 2017 08:55:24 +0100 Subject: [PATCH] Minor changes. --- include/CLI/App.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }