Index: pkg/analyzer_experimental/lib/options.dart |
diff --git a/pkg/analyzer_experimental/lib/options.dart b/pkg/analyzer_experimental/lib/options.dart |
index cb63502ae88014ada7ddb0630053142aa985a8e0..dd841f0a3c43f3f376871a119302bc4a87158cf6 100644 |
--- a/pkg/analyzer_experimental/lib/options.dart |
+++ b/pkg/analyzer_experimental/lib/options.dart |
@@ -153,7 +153,7 @@ class CommandLineOptions { |
static String _getVersion() { |
try { |
- Path path = new Path(new Options().script); |
+ Path path = new Path(Platform.script); |
Path versionPath = path.directoryPath.append('..').append('version'); |
File versionFile = new File.fromPath(versionPath); |
return versionFile.readAsStringSync().trim(); |