mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-03 14:44:40 +00:00
Fixed clang-tidy issues
See https://github.com/p-ranav/argparse/pull/259#pullrequestreview-1284243420
This commit is contained in:
parent
3d7596765b
commit
aa996952bb
@ -685,11 +685,11 @@ public:
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user