[dart2js] hide "invoke from" console message.

This message was meant to be presented as an extra diagnostic message when the
compiler was running with the verbose flag, but it was accidentally
presented in the help message when running 'dart compile js -h -v'.

Change-Id: Ic2e76fc117bfd76f071756cc48ee6ce28d0f0391
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/275042
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
This commit is contained in:
Sigmund Cherem 2022-12-12 20:18:53 +00:00 committed by Commit Queue
parent ef2c7916f5
commit 2d282a65ea

View file

@ -716,7 +716,7 @@ Future<api.CompilationResult> compile(List<String> argv,
if (invoker == null) {
warning("The 'dart2js' entrypoint script is deprecated, "
"please use 'dart compile js' instead.");
} else if (verbose != null) {
} else if (verbose != null && !wantHelp) {
print("Compiler invoked from: '$invoker'");
}