Index: pkg/analyzer_cli/lib/src/options.dart |
diff --git a/pkg/analyzer_cli/lib/src/options.dart b/pkg/analyzer_cli/lib/src/options.dart |
index 5a2e93972865d15c4d22c3006d4ca28abe33fe7f..4cd4c6c8ddbcd7af2df28891dcf44b630713b24c 100644 |
--- a/pkg/analyzer_cli/lib/src/options.dart |
+++ b/pkg/analyzer_cli/lib/src/options.dart |
@@ -112,6 +112,9 @@ class CommandLineOptions { |
/// Whether to use machine format for error display |
final bool machineFormat; |
+ /// The path to the root folder of the incremental cache. |
+ final String incrementalCachePath; |
+ |
/// The path to the package root |
final String packageRootPath; |
@@ -176,6 +179,7 @@ class CommandLineOptions { |
lints = args['lints'], |
log = args['log'], |
machineFormat = args['machine'] || args['format'] == 'machine', |
+ incrementalCachePath = args['incremental-cache-path'], |
packageConfigPath = args['packages'], |
packageRootPath = args['package-root'], |
perfReport = args['x-perf-report'], |
@@ -351,6 +355,13 @@ class CommandLineOptions { |
allowMultiple: true, |
splitCommas: false) |
// |
+ // Incremental analysis. |
+ // |
+ ..addOption('incremental-cache-path', |
+ help: 'The path to the folder with information to support ' |
+ 'incremental analysis, e.g. summary files, errors, etc.', |
+ hide: true) |
+ // |
// Build mode. |
// |
..addFlag('persistent_worker', |