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 d1550c30f5a889d3bc2a46bf4e023011b23e6ae7..fd805c69281431f5ae4f0a8c725b0b8271c16c52 100644 |
--- a/pkg/analyzer_cli/lib/src/options.dart |
+++ b/pkg/analyzer_cli/lib/src/options.dart |
@@ -163,7 +163,7 @@ class CommandLineOptions { |
enableTypeChecks = args['enable_type_checks'], |
hintsAreFatal = args['fatal-hints'], |
ignoreUnrecognizedFlags = args['ignore-unrecognized-flags'], |
- lints = args['lints'], |
+ lints = args[lintsFlag], |
log = args['log'], |
machineFormat = args['format'] == 'machine', |
perfReport = args['x-perf-report'], |
@@ -297,8 +297,6 @@ class CommandLineOptions { |
help: 'Print the analyzer version.', |
defaultsTo: false, |
negatable: false) |
- ..addFlag('lints', |
- help: 'Show lint results.', defaultsTo: false, negatable: false) |
..addFlag('no-hints', |
help: 'Do not show hint results.', |
defaultsTo: false, |