diff --git a/include/CLI/App.hpp b/include/CLI/App.hpp index 6519af90..a71f2d6d 100644 --- a/include/CLI/App.hpp +++ b/include/CLI/App.hpp @@ -1239,9 +1239,10 @@ class App { ///@return true if matched CLI11_NODISCARD bool check_name(std::string name_to_check) const; - enum class NameMatch:std::uint8_t{none=0,match=1,prefix=2}; + enum class NameMatch : std::uint8_t { none = 0, match = 1, prefix = 2 }; /// Check the name, case-insensitive and underscore insensitive if set - /// @return NameMatch::none if no match, NameMatch::match if exact NameMatch::prefix if prefix is enabled and a prefix matches + /// @return NameMatch::none if no match, NameMatch::match if exact NameMatch::prefix if prefix is enabled and a + /// prefix matches CLI11_NODISCARD NameMatch check_name_detail(std::string name_to_check) const; /// Get the groups available directly from this option (in order) diff --git a/include/CLI/impl/App_inl.hpp b/include/CLI/impl/App_inl.hpp index 738b0887..6b03a453 100644 --- a/include/CLI/impl/App_inl.hpp +++ b/include/CLI/impl/App_inl.hpp @@ -895,8 +895,8 @@ CLI11_NODISCARD CLI11_INLINE std::string App::get_display_name(bool with_aliases } CLI11_NODISCARD CLI11_INLINE bool App::check_name(std::string name_to_check) const { - auto result=check_name_detail(std::move(name_to_check)); - return (result!=NameMatch::none); + auto result = check_name_detail(std::move(name_to_check)); + return (result != NameMatch::none); } CLI11_NODISCARD CLI11_INLINE App::NameMatch App::check_name_detail(std::string name_to_check) const {