Index: sdk/lib/_internal/compiler/samples/jsonify/jsonify.dart |
diff --git a/sdk/lib/_internal/compiler/samples/jsonify/jsonify.dart b/sdk/lib/_internal/compiler/samples/jsonify/jsonify.dart |
index 931e24b97d19ac2301bc7497efd77bf56a8e272e..e58ee6b4db0cb2197ddae51c48fc3bdbbc61050f 100644 |
--- a/sdk/lib/_internal/compiler/samples/jsonify/jsonify.dart |
+++ b/sdk/lib/_internal/compiler/samples/jsonify/jsonify.dart |
@@ -32,20 +32,16 @@ RandomAccessFile output; |
Uri outputUri; |
Uri sdkRoot; |
-main() { |
- mainWithOptions(new Options()); |
-} |
- |
-mainWithOptions(Options options) { |
+main(List<String> arguments) { |
handler = new FormattingDiagnosticHandler() |
..throwOnError = true; |
outputUri = |
- handler.provider.cwd.resolve(nativeToUriPath(options.arguments.first)); |
- output = new File(options.arguments.first).openSync(mode: FileMode.WRITE); |
+ handler.provider.cwd.resolve(nativeToUriPath(arguments.first)); |
+ output = new File(arguments.first).openSync(mode: FileMode.WRITE); |
Uri myLocation = |
- handler.provider.cwd.resolve(nativeToUriPath(options.script)); |
+ handler.provider.cwd.resolve(nativeToUriPath(Platform.script)); |
sdkRoot = myLocation.resolve(SDK_ROOT).resolve('../'); |