| Index: lib/src/options.dart
|
| diff --git a/lib/src/options.dart b/lib/src/options.dart
|
| index 03d47fc7511c4bba3b02ff407d6d687bdbba4b1b..01bef1d3f7b4572b044312608b47589f5163bc69 100644
|
| --- a/lib/src/options.dart
|
| +++ b/lib/src/options.dart
|
| @@ -102,6 +102,8 @@ class CompilerOptions {
|
| /// Whether to dump summary information on the console.
|
| final bool dumpInfo;
|
|
|
| + final bool htmlReport;
|
| +
|
| /// If not null, path to a file that will store a json representation of the
|
| /// summary information (only used if [dumpInfo] is true).
|
| final String dumpInfoFile;
|
| @@ -151,6 +153,7 @@ class CompilerOptions {
|
| this.runnerOptions: const RunnerOptions(),
|
| this.checkSdk: false,
|
| this.dumpInfo: false,
|
| + this.htmlReport: false,
|
| this.dumpInfoFile,
|
| this.useColors: true,
|
| this.help: false,
|
| @@ -200,6 +203,8 @@ CompilerOptions parseOptions(List<String> argv, {bool forceOutDir: false}) {
|
| var dumpInfo = args['dump-info'];
|
| if (dumpInfo == null) dumpInfo = serverMode;
|
|
|
| + var htmlReport = args['html-report'];
|
| +
|
| var v8Binary = args['v8-binary'];
|
| if (v8Binary == null) v8Binary = 'iojs';
|
|
|
| @@ -237,6 +242,7 @@ CompilerOptions parseOptions(List<String> argv, {bool forceOutDir: false}) {
|
| runnerOptions: new RunnerOptions(v8Binary: v8Binary),
|
| checkSdk: args['sdk-check'],
|
| dumpInfo: dumpInfo,
|
| + htmlReport: htmlReport,
|
| dumpInfoFile: args['dump-info-file'],
|
| useColors: useColors,
|
| help: showUsage,
|
| @@ -311,6 +317,8 @@ final ArgParser argParser = new ArgParser()
|
| ..addOption('log', abbr: 'l', help: 'Logging level (defaults to warning)')
|
| ..addFlag('dump-info',
|
| abbr: 'i', help: 'Dump summary information', defaultsTo: null)
|
| + ..addFlag('html-report',
|
| + help: 'Output compilation results to html', defaultsTo: null)
|
| ..addOption('v8-binary',
|
| help: 'V8-based binary to run JavaScript output with (iojs, node, d8)',
|
| defaultsTo: 'iojs')
|
|
|