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:
parent
788c3f58cb
commit
8f8344bff8
@ -75,7 +75,7 @@ CLI11_INLINE std::string Formatter::make_description(const App *app) const {
|
|||||||
if(min_options == 1) {
|
if(min_options == 1) {
|
||||||
desc += " \n[Exactly 1 of the following options is required]";
|
desc += " \n[Exactly 1 of the following options is required]";
|
||||||
} else {
|
} 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) {
|
} else if(max_options > 0) {
|
||||||
if(min_options > 0) {
|
if(min_options > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user