Minor, remove blank line in extra help
This commit is contained in:
@@ -39,10 +39,8 @@ class Usage {
|
|||||||
for (Field field : clazz.getDeclaredFields()) {
|
for (Field field : clazz.getDeclaredFields()) {
|
||||||
String usage = fieldUsage(field, extraHelp);
|
String usage = fieldUsage(field, extraHelp);
|
||||||
if (usage != null) {
|
if (usage != null) {
|
||||||
boolean coroutinesUsage = usage.contains("Xcoroutines");
|
if (usage.contains("Xcoroutines")) {
|
||||||
if (coroutinesUsage && coroutinesUsagePrinted) {
|
if (coroutinesUsagePrinted) continue;
|
||||||
continue;
|
|
||||||
} else if (coroutinesUsage) {
|
|
||||||
coroutinesUsagePrinted = true;
|
coroutinesUsagePrinted = true;
|
||||||
}
|
}
|
||||||
target.println(usage);
|
target.println(usage);
|
||||||
@@ -89,6 +87,7 @@ class Usage {
|
|||||||
if (isXCoroutinesKey) {
|
if (isXCoroutinesKey) {
|
||||||
sb.append(" ");
|
sb.append(" ");
|
||||||
sb.append(coroutinesKeyDescription);
|
sb.append(coroutinesKeyDescription);
|
||||||
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
int width = OPTION_NAME_PADDING_WIDTH - 1;
|
int width = OPTION_NAME_PADDING_WIDTH - 1;
|
||||||
|
|||||||
-1
@@ -8,6 +8,5 @@ where advanced options include:
|
|||||||
-Xno-check-impl Do not check presence of 'impl' modifier in multi-platform projects
|
-Xno-check-impl Do not check presence of 'impl' modifier in multi-platform projects
|
||||||
-Xcoroutines={enable|warn|error} Enable coroutines or report warnings or errors on declarations and use sites of 'suspend' modifier
|
-Xcoroutines={enable|warn|error} Enable coroutines or report warnings or errors on declarations and use sites of 'suspend' modifier
|
||||||
|
|
||||||
|
|
||||||
Advanced options are non-standard and may be changed or removed without any notice.
|
Advanced options are non-standard and may be changed or removed without any notice.
|
||||||
OK
|
OK
|
||||||
-1
@@ -20,6 +20,5 @@ where advanced options include:
|
|||||||
-Xno-check-impl Do not check presence of 'impl' modifier in multi-platform projects
|
-Xno-check-impl Do not check presence of 'impl' modifier in multi-platform projects
|
||||||
-Xcoroutines={enable|warn|error} Enable coroutines or report warnings or errors on declarations and use sites of 'suspend' modifier
|
-Xcoroutines={enable|warn|error} Enable coroutines or report warnings or errors on declarations and use sites of 'suspend' modifier
|
||||||
|
|
||||||
|
|
||||||
Advanced options are non-standard and may be changed or removed without any notice.
|
Advanced options are non-standard and may be changed or removed without any notice.
|
||||||
OK
|
OK
|
||||||
Reference in New Issue
Block a user