Chromium Code Reviews| 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 ec62ce34d8e5643a4014a4182c99baa8d2365498..d76435dfd72ce9eec6306d5f587c8de3129f7d2b 100644 |
| --- a/pkg/analyzer_cli/lib/src/options.dart |
| +++ b/pkg/analyzer_cli/lib/src/options.dart |
| @@ -111,6 +111,9 @@ class CommandLineOptions { |
| /// Whether to show package: warnings |
| final bool showPackageWarnings; |
| + /// If not null, show package: warnings only for matching packages. |
| + final String showPackageWarningsPrefix; |
| + |
| /// Whether to show SDK warnings |
| final bool showSdkWarnings; |
| @@ -151,8 +154,10 @@ class CommandLineOptions { |
| packageRootPath = args['package-root'], |
| perfReport = args['x-perf-report'], |
| shouldBatch = args['batch'], |
| - showPackageWarnings = |
| - args['show-package-warnings'] || args['package-warnings'], |
| + showPackageWarnings = args['show-package-warnings'] || |
| + args['package-warnings'] || |
| + args['x-package-warnings-prefix'] != null, |
| + showPackageWarningsPrefix = args['x-package-warnings-prefix'], |
| showSdkWarnings = args['show-sdk-warnings'] || args['warnings'], |
| sourceFiles = args.rest, |
| warningsAreFatal = args['fatal-warnings'], |
| @@ -281,6 +286,9 @@ class CommandLineOptions { |
| help: 'Show warnings from SDK imports (deprecated).', |
| defaultsTo: false, |
| negatable: false) |
| + ..addOption('x-package-warnings-prefix', |
| + help: |
| + 'Show warnings from package: imports that match the given prefix') |
|
Brian Wilkerson
2016/03/18 14:13:17
Should be hidden because it's a temporary solution
skybrian
2016/03/18 22:32:44
Done
|
| ..addOption('x-perf-report', |
| help: 'Writes a performance report to the given file (experimental).') |
| ..addFlag('help', |