Skip to content

Commit

Permalink
Add support for empty "" default value
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed May 29, 2020
1 parent 38683dc commit 4675ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application.cpp
Expand Up @@ -465,7 +465,7 @@ void application::print_default_config(std::ostream& os) {
else {
// The string is formatted "arg (=<interesting part>)"
example.erase(0, 6);
example.erase(example.length()-1);
if(!example.empty()) example.erase(example.length()-1);
os << "# " << od->long_name() << " = " << example << std::endl;
}
}
Expand Down

0 comments on commit 4675ab6

Please sign in to comment.