mirror of
https://github.com/sametersoylu/argument-parser.git
synced 2026-07-14 09:38:11 +00:00
chore: format
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user