diff --git a/include/CLI/App.hpp b/include/CLI/App.hpp index d6538c8f..397879c9 100644 --- a/include/CLI/App.hpp +++ b/include/CLI/App.hpp @@ -140,7 +140,7 @@ class App { App(std::string description_, bool help, detail::enabler) : description_(std::move(description_)) { if(help) - help_ptr_ = add_flag("-h,--help", "Print this help message and exit"); + add_help_flag("-h,--help", "Print this help message and exit"); } public: