Skip to content

Commit

Permalink
Fixed clang-tidy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Fanurs committed Apr 22, 2023
1 parent 3d75967 commit aa99695
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/argparse/argparse.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,11 +685,11 @@ class Argument {
}
prev += pos - prev + 1;
}
if (first_line)
if (first_line) {
stream << "\t" << argument.m_help;
else {
} else {
auto leftover = argument.m_help.substr(prev, argument.m_help.size() - prev);
if (leftover.size() > 0) {
if (!leftover.empty()) {
stream.width(stream_width);
stream << std::string(spacing, ' ') << "\t" << leftover;
}
Expand Down

0 comments on commit aa99695

Please sign in to comment.