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

fix: make_description min option output (#808)

Include spacing between the number of minimum options required and the rest of the description.
This commit is contained in:
Ryan Sherlock 2022-11-30 11:31:11 -08:00 committed by GitHub
parent 788c3f58cb
commit 8f8344bff8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ CLI11_INLINE std::string Formatter::make_description(const App *app) const {
if(min_options == 1) {
desc += " \n[Exactly 1 of the following options is required]";
} else {
desc += " \n[Exactly " + std::to_string(min_options) + "options from the following list are required]";
desc += " \n[Exactly " + std::to_string(min_options) + " options from the following list are required]";
}
} else if(max_options > 0) {
if(min_options > 0) {