chore: format

This commit is contained in:
2026-05-07 17:49:47 +04:00
parent 2b2a0df933
commit 21ca1f638b
19 changed files with 667 additions and 1357 deletions

View File

@@ -11,4 +11,4 @@ namespace argument_parser::conventions::helpers {
std::transform(s.begin(), s.end(), s.begin(), [](unsigned char c) { return std::toupper(c); });
return s;
}
} // namespace argument_parser::conventions::helpers
} // namespace argument_parser::conventions::helpers

View File

@@ -123,4 +123,4 @@ namespace argument_parser::conventions::implementations {
std::vector<convention_features> gnu_equal_argument_convention::get_features() const {
return {}; // no fallback allowed
}
} // namespace argument_parser::conventions::implementations
} // namespace argument_parser::conventions::implementations

View File

@@ -50,8 +50,9 @@ namespace argument_parser::conventions::implementations {
return "/";
}
std::pair<std::string, std::string> windows_argument_convention::make_help_text(std::string const &short_arg, std::string const &long_arg,
bool requires_value) const {
std::pair<std::string, std::string> windows_argument_convention::make_help_text(std::string const &short_arg,
std::string const &long_arg,
bool requires_value) const {
std::string s_part = "";
if (short_arg != "-" && short_arg != "") {
s_part += short_prec() + short_arg;
@@ -129,7 +130,8 @@ namespace argument_parser::conventions::implementations {
}
std::pair<std::string, std::string> windows_kv_argument_convention::make_help_text(std::string const &short_arg,
std::string const &long_arg, bool requires_value) const {
std::string const &long_arg,
bool requires_value) const {
std::string s_part = "";
if (short_arg != "-" && short_arg != "") {
s_part += short_prec() + short_arg;
@@ -153,4 +155,4 @@ namespace argument_parser::conventions::implementations {
return {convention_features::ALLOW_LONG_TO_SHORT_FALLBACK,
convention_features::ALLOW_SHORT_TO_LONG_FALLBACK}; // interchangable
}
} // namespace argument_parser::conventions::implementations
} // namespace argument_parser::conventions::implementations