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

Fix default --version help message capitalisation. (#476)

The default help message for “--help” is capitalised, whereas the one
for “--version” was not:

    -h,--help                   Print this help message and exit
    -V,--version                display program version information and exit
This commit is contained in:
Sam Hocevar 2020-06-14 17:13:54 +02:00 committed by GitHub
parent 5925f94b69
commit dccfb06d65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -719,7 +719,7 @@ class App {
version_ptr_ = add_flag_callback(
flag_name,
[versionString]() { throw(CLI::CallForVersion(versionString, 0)); },
"display program version information and exit");
"Display program version information and exit");
version_ptr_->configurable(false);
}
@ -738,7 +738,7 @@ class App {
version_ptr_ = add_flag_callback(
flag_name,
[vfunc]() { throw(CLI::CallForVersion(vfunc(), 0)); },
"display program version information and exit");
"Display program version information and exit");
version_ptr_->configurable(false);
}