Skip to content

Commit

Permalink
[infra] Reject unexpected extra arguments in approve_results.
Browse files Browse the repository at this point in the history
Change-Id: I441572d5e6d99aa3f3ff3427f8562fa417405d09
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/95643
Reviewed-by: William Hesse <whesse@google.com>
  • Loading branch information
sortie committed Mar 8, 2019
1 parent 299c645 commit 283cabf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/approve_results.dart
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,12 @@ ${parser.usage}""");
return;
}

if (options.rest.isNotEmpty) {
stderr.writeln("Unexpected extra argument: ${options.rest.first}");
exitCode = 1;
return;
}

// Locate gsutil.py.
gsutilPy =
Platform.script.resolve("../third_party/gsutil/gsutil.py").toFilePath();
Expand Down

0 comments on commit 283cabf

Please sign in to comment.