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

A few fixes for failing tests

This commit is contained in:
Henry Fredrick Schreiner 2017-12-23 19:18:19 -06:00
parent 78ed995685
commit 9e183646c5

View File

@ -842,9 +842,9 @@ class App {
value = "false";
}
if(value.size() != 0) {
if(!value.empty()) {
if(write_description && opt->has_description()) {
if(out.tellp() != 0) {
if(static_cast<int>(out.tellp()) != 0) {
out << std::endl;
}
out << "; " << detail::fix_newlines("; ", opt->get_description()) << std::endl;