OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 analyzer.src.command_line.arguments; | 5 library analyzer.src.command_line.arguments; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import 'package:analyzer/file_system/file_system.dart'; | 9 import 'package:analyzer/file_system/file_system.dart'; |
10 import 'package:analyzer/src/context/builder.dart'; | 10 import 'package:analyzer/src/context/builder.dart'; |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 // Hidden flags and options. | 153 // Hidden flags and options. |
154 // | 154 // |
155 parser.addOption(defineVariableOption, | 155 parser.addOption(defineVariableOption, |
156 abbr: 'D', | 156 abbr: 'D', |
157 allowMultiple: true, | 157 allowMultiple: true, |
158 help: 'Define environment variables. For example, "-Dfoo=bar" defines an ' | 158 help: 'Define environment variables. For example, "-Dfoo=bar" defines an ' |
159 'environment variable named "foo" whose value is "bar".', | 159 'environment variable named "foo" whose value is "bar".', |
160 hide: hide); | 160 hide: hide); |
161 parser.addOption(packagesOption, | 161 parser.addOption(packagesOption, |
162 help: 'The path to the package resolution configuration file, which ' | 162 help: 'The path to the package resolution configuration file, which ' |
163 'supplies a mapping of package names to paths. This option cannot be ' | 163 'supplies a mapping of package names\nto paths. This option cannot be
' |
164 'used with --package-root.', | 164 'used with --package-root.', |
165 hide: ddc); | 165 hide: ddc); |
166 parser.addOption(sdkSummaryPathOption, | 166 parser.addOption(sdkSummaryPathOption, |
167 help: 'The path to the Dart SDK summary file.', hide: hide); | 167 help: 'The path to the Dart SDK summary file.', hide: hide); |
168 parser.addFlag(enableStrictCallChecksFlag, | 168 parser.addFlag(enableStrictCallChecksFlag, |
169 help: 'Fix issue 21938.', | 169 help: 'Fix issue 21938.', |
170 defaultsTo: false, | 170 defaultsTo: false, |
171 negatable: false, | 171 negatable: false, |
172 hide: hide); | 172 hide: hide); |
173 parser.addFlag(enableInitializingFormalAccessFlag, | 173 parser.addFlag(enableInitializingFormalAccessFlag, |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 .replaceAll('\r\n', '\n') | 302 .replaceAll('\r\n', '\n') |
303 .replaceAll('\r', '\n') | 303 .replaceAll('\r', '\n') |
304 .split('\n') | 304 .split('\n') |
305 .where((String line) => line.isNotEmpty)); | 305 .where((String line) => line.isNotEmpty)); |
306 } on FileSystemException catch (e) { | 306 } on FileSystemException catch (e) { |
307 throw new Exception('Failed to read file specified by $lastArg : $e'); | 307 throw new Exception('Failed to read file specified by $lastArg : $e'); |
308 } | 308 } |
309 } | 309 } |
310 return args; | 310 return args; |
311 } | 311 } |
OLD | NEW |