Index: samples/build_dart/build.dart |
diff --git a/samples/build_dart/build.dart b/samples/build_dart/build.dart |
index 07817b5dfdaf0dc0759468c768cdfdd2cce8a958..d2def22770ef5dd4007ccb3b1db41fa96084c041 100644 |
--- a/samples/build_dart/build.dart |
+++ b/samples/build_dart/build.dart |
@@ -21,8 +21,8 @@ List<String> removedFiles; |
* See the source code of [processArgs] for information about the legal command |
* line options. |
*/ |
-void main() { |
- processArgs(); |
+void main(List<String> arguments) { |
+ processArgs(arguments); |
if (cleanBuild) { |
handleCleanCommand(); |
@@ -40,7 +40,7 @@ void main() { |
/** |
* Handle --changed, --removed, --clean, --full, and --help command-line args. |
*/ |
-void processArgs() { |
+void processArgs(List<String> arguments) { |
var parser = new ArgParser(); |
parser.addOption("changed", help: "the file has changed since the last build", |
allowMultiple: true); |
@@ -52,7 +52,7 @@ void processArgs() { |
negatable: false, help: "produce warnings in a machine parseable format"); |
parser.addFlag("help", negatable: false, help: "display this help and exit"); |
- var args = parser.parse(new Options().arguments); |
+ var args = parser.parse(arguments); |
if (args["help"]) { |
print(parser.getUsage()); |