Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(952)

Unified Diff: pkg/analyzer/lib/src/command_line/arguments.dart

Issue 2695923012: Options cleanup for the command-line analyzer. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer_cli/lib/src/options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/command_line/arguments.dart
diff --git a/pkg/analyzer/lib/src/command_line/arguments.dart b/pkg/analyzer/lib/src/command_line/arguments.dart
index 1871625373c9117e13f294fc0466cf69c44d6665..ceb84360201f0ea737504b253e9598306a8b6e0c 100644
--- a/pkg/analyzer/lib/src/command_line/arguments.dart
+++ b/pkg/analyzer/lib/src/command_line/arguments.dart
@@ -133,41 +133,38 @@ DartSdkManager createDartSdkManager(
* then remove the [ddc] named argument from this method.
*/
void defineAnalysisArguments(ArgParser parser, {bool hide: true, ddc: false}) {
- parser.addOption(defineVariableOption,
- abbr: 'D',
- allowMultiple: true,
- help: 'Define environment variables. For example, "-Dfoo=bar" defines an '
- 'environment variable named "foo" whose value is "bar".');
-
parser.addOption(sdkPathOption, help: 'The path to the Dart SDK.');
- parser.addOption(sdkSummaryPathOption,
- help: 'The path to the Dart SDK summary file.', hide: hide);
-
parser.addOption(analysisOptionsFileOption,
help: 'Path to an analysis options file.');
-
parser.addOption(packageRootOption,
- abbr: 'p',
help: 'The path to a package root directory (deprecated). '
'This option cannot be used with --packages.');
- parser.addOption(packagesOption,
- help: 'The path to the package resolution configuration file, which '
- 'supplies a mapping of package names to paths. This option cannot be '
- 'used with --package-root.',
- hide: ddc);
-
parser.addFlag(strongModeFlag,
- help: 'Enable strong static checks (https://goo.gl/DqcBsw)',
+ help: 'Enable strong static checks (https://goo.gl/DqcBsw).',
defaultsTo: ddc);
parser.addFlag(noImplicitCastsFlag,
negatable: false,
- help: 'Disable implicit casts in strong mode (https://goo.gl/cTLz40)');
+ help: 'Disable implicit casts in strong mode (https://goo.gl/cTLz40).');
parser.addFlag(noImplicitDynamicFlag,
negatable: false,
- help: 'Disable implicit dynamic (https://goo.gl/m0UgXD)');
+ help: 'Disable implicit dynamic (https://goo.gl/m0UgXD).');
+
//
// Hidden flags and options.
//
+ parser.addOption(defineVariableOption,
+ abbr: 'D',
+ allowMultiple: true,
+ help: 'Define environment variables. For example, "-Dfoo=bar" defines an '
+ 'environment variable named "foo" whose value is "bar".',
+ hide: hide);
+ parser.addOption(packagesOption,
+ help: 'The path to the package resolution configuration file, which '
+ 'supplies a mapping of package names to paths. This option cannot be '
+ 'used with --package-root.',
+ hide: ddc);
+ parser.addOption(sdkSummaryPathOption,
+ help: 'The path to the Dart SDK summary file.', hide: hide);
// parser.addFlag(enableNullAwareOperatorsFlag, // 'enable-null-aware-operators'
// help: 'Enable support for null-aware operators (DEP 9).',
// defaultsTo: false,
« no previous file with comments | « no previous file | pkg/analyzer_cli/lib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698