Chromium Code Reviews| Index: pkg/analyzer/lib/options.dart |
| diff --git a/pkg/analyzer/lib/options.dart b/pkg/analyzer/lib/options.dart |
| index bdb58f04636dde83b989b98f49ec013e3d6ff513..b8e18dbdae9be36b969333d8a3234f000ae0d675 100644 |
| --- a/pkg/analyzer/lib/options.dart |
| +++ b/pkg/analyzer/lib/options.dart |
| @@ -51,6 +51,9 @@ class CommandLineOptions { |
| /** The source files to analyze */ |
| final List<String> sourceFiles; |
| + /** Whether to print analysis messages and exceptions */ |
| + final bool verbose; |
|
jwren
2014/03/12 17:40:01
Any other suggestions other than "verbose"? Brian
scheglov
2014/03/12 19:07:01
"verbose" sounds good to me.
|
| + |
| /** |
| * Initialize options from the given parsed [args]. |
| */ |
| @@ -66,6 +69,7 @@ class CommandLineOptions { |
| warningsAreFatal = args['fatal-warnings'], |
| dartSdkPath = args['dart-sdk'], |
| packageRootPath = args['package-root'], |
| + verbose = args['verbose'], |
| sourceFiles = args.rest; |
| /** |
| @@ -128,7 +132,9 @@ class CommandLineOptions { |
| ..addFlag('show-sdk-warnings', help: 'Show warnings from SDK imports (deprecated)', |
| defaultsTo: false, negatable: false) |
| ..addFlag('help', abbr: 'h', help: 'Display this help message', |
| - defaultsTo: false, negatable: false); |
| + defaultsTo: false, negatable: false) |
| + ..addFlag('verbose', abbr: 'v', help: 'Print verbose messages and exceptions', |
| + defaultsTo: false, negatable: false, hide: true); |
| try { |
| // TODO(scheglov) https://code.google.com/p/dart/issues/detail?id=11061 |
| @@ -206,10 +212,10 @@ class _CommandLineParser { |
| * See [ArgParser.addFlag()]. |
| */ |
| void addFlag(String name, {String abbr, String help, bool defaultsTo: false, |
| - bool negatable: true, void callback(bool value)}) { |
| + bool negatable: true, void callback(bool value), bool hide: false}) { |
| _knownFlags.add(name); |
| _parser.addFlag(name, abbr: abbr, help: help, defaultsTo: defaultsTo, |
| - negatable: negatable, callback: callback); |
| + negatable: negatable, callback: callback, hide: hide); |
| } |
| /** |