Skip to content

Commit 68380c1

Browse files
pre-commit-ci[bot]phlptp
authored andcommitted
style: pre-commit.ci fixes
1 parent 2fd929a commit 68380c1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/CLI/App.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -799,10 +799,10 @@ class App {
799799

800800
/// Add option for flag with integer result - defaults to allowing multiple passings, but can be forced to one
801801
/// if `multi_option_policy(CLI::MultiOptionPolicy::Throw)` is used.
802-
template <typename T,
802+
template <
803+
typename T,
803804
enable_if_t<std::is_constructible<T, std::int64_t>::value && !std::is_const<T>::value && !is_bool<T>::value,
804-
detail::enabler> =
805-
detail::dummy>
805+
detail::enabler> = detail::dummy>
806806
Option *add_flag(std::string flag_name,
807807
T &flag_count, ///< A variable holding the count
808808
std::string flag_description = "") {

tests/AppTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2314,5 +2314,5 @@ TEST_CASE("C20_compile", "simple") {
23142314
auto flag = app.add_flag("--flag", "desc");
23152315

23162316
app.parse("--flag");
2317-
CHECK(static_cast<bool>(flag));
2317+
CHECK_FALSE(flag->empty());
23182318
}

0 commit comments

Comments
 (0)