Commit dccfb06d651b34d4b759594c6aee120afe359a54
Committed by
GitHub
1 parent
5925f94b
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
Showing
1 changed file
with
2 additions
and
2 deletions
include/CLI/App.hpp
| @@ -719,7 +719,7 @@ class App { | @@ -719,7 +719,7 @@ class App { | ||
| 719 | version_ptr_ = add_flag_callback( | 719 | version_ptr_ = add_flag_callback( |
| 720 | flag_name, | 720 | flag_name, |
| 721 | [versionString]() { throw(CLI::CallForVersion(versionString, 0)); }, | 721 | [versionString]() { throw(CLI::CallForVersion(versionString, 0)); }, |
| 722 | - "display program version information and exit"); | 722 | + "Display program version information and exit"); |
| 723 | version_ptr_->configurable(false); | 723 | version_ptr_->configurable(false); |
| 724 | } | 724 | } |
| 725 | 725 | ||
| @@ -738,7 +738,7 @@ class App { | @@ -738,7 +738,7 @@ class App { | ||
| 738 | version_ptr_ = add_flag_callback( | 738 | version_ptr_ = add_flag_callback( |
| 739 | flag_name, | 739 | flag_name, |
| 740 | [vfunc]() { throw(CLI::CallForVersion(vfunc(), 0)); }, | 740 | [vfunc]() { throw(CLI::CallForVersion(vfunc(), 0)); }, |
| 741 | - "display program version information and exit"); | 741 | + "Display program version information and exit"); |
| 742 | version_ptr_->configurable(false); | 742 | version_ptr_->configurable(false); |
| 743 | } | 743 | } |
| 744 | 744 |