Minor, remove blank line in extra help

This commit is contained in:
Alexander Udalov
2017-02-08 19:46:12 +03:00
parent 8fee62a8c5
commit 20d856fa77
3 changed files with 3 additions and 6 deletions
@@ -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
View File
@@ -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
View File
@@ -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