Stop wrongly displaying the default boolean value, they are usually toggles.
This commit is contained in:
parent
f17cc6a211
commit
ffff529772
3 changed files with 4 additions and 2 deletions
|
@ -22,7 +22,7 @@ class CLIHelper {
|
|||
}
|
||||
|
||||
builder.append(
|
||||
"\t\t\t${arg.description} ${arg.getValue().toString() == "%" ? "" : "[Default: ${arg.getValue()}]"}\n");
|
||||
"\t\t\t${arg.description} ${(arg.getValue().toString() == "%" || arg.getType() == ArgumentType.BOOL) ? "" : "[Default: ${arg.getValue()}]"}\n");
|
||||
}
|
||||
|
||||
return builder.toString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue