OLD | NEW |
---|---|
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library dart2js.cmdline; | 5 library dart2js.cmdline; |
6 | 6 |
7 import 'dart:async' | 7 import 'dart:async' |
8 show Future, EventSink; | 8 show Future, EventSink; |
9 import 'dart:io' | 9 import 'dart:io' |
10 show exit, File, FileMode, Platform, RandomAccessFile, FileSystemException, | 10 show exit, File, FileMode, Platform, RandomAccessFile, FileSystemException, |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
269 (_) => diagnosticHandler.showHints = false), | 269 (_) => diagnosticHandler.showHints = false), |
270 new OptionHandler( | 270 new OptionHandler( |
271 '--output-type=dart|--output-type=dart-multi|--output-type=js', | 271 '--output-type=dart|--output-type=dart-multi|--output-type=js', |
272 setOutputType), | 272 setOutputType), |
273 new OptionHandler('--verbose', setVerbose), | 273 new OptionHandler('--verbose', setVerbose), |
274 new OptionHandler('--version', (_) => wantVersion = true), | 274 new OptionHandler('--version', (_) => wantVersion = true), |
275 new OptionHandler('--library-root=.+', setLibraryRoot), | 275 new OptionHandler('--library-root=.+', setLibraryRoot), |
276 new OptionHandler('--out=.+|-o.*', setOutput, multipleArguments: true), | 276 new OptionHandler('--out=.+|-o.*', setOutput, multipleArguments: true), |
277 new OptionHandler('--allow-mock-compilation', passThrough), | 277 new OptionHandler('--allow-mock-compilation', passThrough), |
278 new OptionHandler('--minify|-m', implyCompilation), | 278 new OptionHandler('--minify|-m', implyCompilation), |
279 new OptionHandler('--hide-uris', passThrough), | |
Johnni Winther
2014/09/19 07:54:07
Should we document this is verbose help?
floitsch
2014/09/26 12:51:43
Done.
| |
279 new OptionHandler('--force-strip=.*', setStrip), | 280 new OptionHandler('--force-strip=.*', setStrip), |
280 new OptionHandler('--disable-diagnostic-colors', | 281 new OptionHandler('--disable-diagnostic-colors', |
281 (_) => diagnosticHandler.enableColors = false), | 282 (_) => diagnosticHandler.enableColors = false), |
282 new OptionHandler('--enable-diagnostic-colors', | 283 new OptionHandler('--enable-diagnostic-colors', |
283 (_) => diagnosticHandler.enableColors = true), | 284 (_) => diagnosticHandler.enableColors = true), |
284 new OptionHandler('--enable[_-]checked[_-]mode|--checked', | 285 new OptionHandler('--enable[_-]checked[_-]mode|--checked', |
285 (_) => passThrough('--enable-checked-mode')), | 286 (_) => passThrough('--enable-checked-mode')), |
286 new OptionHandler('--enable-concrete-type-inference', | 287 new OptionHandler('--enable-concrete-type-inference', |
287 (_) => implyCompilation( | 288 (_) => implyCompilation( |
288 '--enable-concrete-type-inference')), | 289 '--enable-concrete-type-inference')), |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
647 } else { | 648 } else { |
648 print(">>> TEST FAIL"); | 649 print(">>> TEST FAIL"); |
649 } | 650 } |
650 stderr.writeln(">>> EOF STDERR"); | 651 stderr.writeln(">>> EOF STDERR"); |
651 runJob(); | 652 runJob(); |
652 }); | 653 }); |
653 } | 654 } |
654 | 655 |
655 runJob(); | 656 runJob(); |
656 } | 657 } |
OLD | NEW |