Help logs profile the same way configuration does.
@@ -70,7 +70,7 @@ class HelpPrinter {
String defaultValueHelp = detectValue.getDefaultValue().originalDefault;
if (matchingProfileDefault != null){
- defaultValueHelp = matchingProfileDefault + ": " + actualDefaultValue;
+ defaultValueHelp = actualDefaultValue + " (" + matchingProfileDefault + ")";
}
def bodyColumns = ["--" + detectValue.getKey(), defaultValueHelp, detectValue.getDescription()]
@@ -90,14 +90,6 @@ class HelpPrinter {
printStream.println(helpMessagePieces.join(System.getProperty("line.separator")))
}
- private String defaultValue(DetectOption option) {
- String out = option.defaultValue.originalDefault;
- option.defaultValue.profileSpecificDefaults.each{
- out += " (" + it.key + ": " + it.value + ")"
- }
- return out;
- }
-
private String formatColumns(List<String> columns, int... columnWidths) {
StringBuilder createColumns = new StringBuilder()
List<String> columnfirstRow = []
