| Index: pkg/front_end/lib/src/fasta/compiler_command_line.dart
|
| diff --git a/pkg/front_end/lib/src/fasta/compiler_command_line.dart b/pkg/front_end/lib/src/fasta/compiler_command_line.dart
|
| index 9704c873fed7bc131562fa4b8f6035b90e7fd4c6..490c5002e9ad6e279e16028c8281a69feeaeb2e2 100644
|
| --- a/pkg/front_end/lib/src/fasta/compiler_command_line.dart
|
| +++ b/pkg/front_end/lib/src/fasta/compiler_command_line.dart
|
| @@ -54,7 +54,9 @@ class CompilerCommandLine extends CommandLine {
|
| if (options.containsKey("--packages")) {
|
| return argumentError(usage, "Option '--packages' isn't supported yet.");
|
| }
|
| - if (arguments.isEmpty) {
|
| + if (programName == "compile_platform" && arguments.length != 2) {
|
| + return argumentError(usage, "Expected two arguments.");
|
| + } else if (arguments.isEmpty) {
|
| return argumentError(usage, "No Dart file specified.");
|
| }
|
| }
|
| @@ -116,6 +118,11 @@ String computeUsage(String programName, bool verbose) {
|
| case "run":
|
| summary = "Runs a Dart program.";
|
| break;
|
| +
|
| + case "compile_platform":
|
| + summary =
|
| + "Compiles Dart SDK platform to the Dill/Kernel IR format.";
|
| + basicUsage = "Usage: $programName [options] patched_sdk output\n";
|
| }
|
| StringBuffer sb = new StringBuffer(basicUsage);
|
| if (summary != null) {
|
|
|