Commit 8f8344bff840cec5aedd01a42ec350b95a738f59

Authored by Ryan Sherlock
Committed by GitHub
1 parent 788c3f58

fix: make_description min option output (#808)

Include spacing between the number of minimum options required and the rest of the description.
include/CLI/impl/Formatter_inl.hpp
@@ -75,7 +75,7 @@ CLI11_INLINE std::string Formatter::make_description(const App *app) const { @@ -75,7 +75,7 @@ CLI11_INLINE std::string Formatter::make_description(const App *app) const {
75 if(min_options == 1) { 75 if(min_options == 1) {
76 desc += " \n[Exactly 1 of the following options is required]"; 76 desc += " \n[Exactly 1 of the following options is required]";
77 } else { 77 } else {
78 - desc += " \n[Exactly " + std::to_string(min_options) + "options from the following list are required]"; 78 + desc += " \n[Exactly " + std::to_string(min_options) + " options from the following list are required]";
79 } 79 }
80 } else if(max_options > 0) { 80 } else if(max_options > 0) {
81 if(min_options > 0) { 81 if(min_options > 0) {