Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Unified Diff: tools/full-coverage.dart

Issue 51043004: Remove uses of Options from tools directory. Fix platform_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dom/docs/bin/docs.dart ('k') | tools/line_doc_comments.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/full-coverage.dart
diff --git a/tools/full-coverage.dart b/tools/full-coverage.dart
index 7e185a8653965ae4aa9c271d5cc5aefd03ad213a..b16f94459c82d4602d5b74a9ccb4642089046721 100644
--- a/tools/full-coverage.dart
+++ b/tools/full-coverage.dart
@@ -300,8 +300,8 @@ class Message {
final env = new Environment();
-main() {
- parseArgs();
+main(List<String> arguments) {
+ parseArgs(arguments);
List files = filesToProcess(env.input);
int filesPerWorker = files.length ~/ env.workers;
@@ -399,7 +399,7 @@ main() {
/// Checks the validity of the provided arguments. Does not initialize actual
/// processing.
-parseArgs() {
+parseArgs(List<String> arguments) {
var parser = new ArgParser();
parser.addOption("sdk-root", abbr: "s",
@@ -427,7 +427,7 @@ parseArgs() {
help: "show this help",
negatable: false);
- var args = parser.parse(new Options().arguments);
+ var args = parser.parse(arguments);
printUsage() {
print("Usage: dart full-coverage.dart [OPTION...]\n");
« no previous file with comments | « tools/dom/docs/bin/docs.dart ('k') | tools/line_doc_comments.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698