1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-05-01 21:23:52 +00:00

Minor changes.

This commit is contained in:
Jonas Nilsson 2017-12-21 08:55:24 +01:00
parent 97b1def525
commit 987ea1f64e

View File

@ -842,11 +842,11 @@ class App {
} }
if (value.size() != 0) { if (value.size() != 0) {
if (write_description and opt->description_.size() != 0) { if (write_description && opt->has_description()) {
if (out.tellp() != 0) { if (out.tellp() != 0) {
out << std::endl; out << std::endl;
} }
out << "; " << opt->description_ << std::endl; out << "; " << opt->get_description() << std::endl;
} }
out << name << "=" << value << std::endl; out << name << "=" << value << std::endl;
} }