Skip to content

Commit

Permalink
[ddc] Only print blank line in ddb if verbose.
Browse files Browse the repository at this point in the history
The blank line clobbers the output if ddb is used in non-verbose mode
to execute a program where the stdout ordinarily belongs to the program
in question whose output might be machine parsed.

Change-Id: Ie929d19deabebb7b1f3d24f99035aec2d9844a64
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153208
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Jonas Termansen <sortie@google.com>
  • Loading branch information
sortie authored and commit-bot@chromium.org committed Jul 7, 2020
1 parent d473952 commit 0d1db38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/dev_compiler/tool/ddb
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ void main(List<String> args) async {
}

// Print an initial empty line to separate the invocation from the output.
print('');
if (verbose) {
print('');
}

if (compile) {
var ddcArgs = [
Expand Down

0 comments on commit 0d1db38

Please sign in to comment.