1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-05-01 21:23:52 +00:00

Using add_help_flag internally

This commit is contained in:
Henry Fredrick Schreiner 2017-11-20 09:29:49 -05:00 committed by Henry Schreiner
parent 15c86072a6
commit 1b9aac85ca

View File

@ -140,7 +140,7 @@ class App {
App(std::string description_, bool help, detail::enabler) : description_(std::move(description_)) { App(std::string description_, bool help, detail::enabler) : description_(std::move(description_)) {
if(help) 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: public: