Skip to content

Commit

Permalink
Clean up documentation of command-line analyzer options
Browse files Browse the repository at this point in the history
Change-Id: If37cfbd7f1187229ab90205e59a7eb60d3b884cf
Reviewed-on: https://dart-review.googlesource.com/48701
Reviewed-by: Devon Carew <[email protected]>
Commit-Queue: Brian Wilkerson <[email protected]>
  • Loading branch information
bwilkerson authored and [email protected] committed Mar 28, 2018
1 parent 4b68234 commit 7470f41
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/analyzer/lib/src/command_line/arguments.dart
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ void defineAnalysisArguments(ArgParser parser, {bool hide: true, ddc: false}) {
parser.addFlag(enableInitializingFormalAccessFlag,
help:
'Enable support for allowing access to field formal parameters in a '
'constructor\'s initializer list.',
'constructor\'s initializer list (deprecated).',
defaultsTo: false,
negatable: false,
hide: hide || ddc);
Expand Down
12 changes: 7 additions & 5 deletions pkg/analyzer_cli/lib/src/options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ class CommandLineOptions {
hide: hide)
..addOption('x-package-warnings-prefix',
help:
'Show warnings from package: imports that match the given prefix.',
'Show warnings from package: imports that match the given prefix (deprecated).',
hide: hide)
..addFlag('enable-conditional-directives',
help:
Expand All @@ -465,7 +465,7 @@ class CommandLineOptions {
negatable: false,
hide: hide)
..addFlag('sdk-warnings',
help: 'Show warnings from SDK imports.',
help: 'Show warnings from SDK imports (deprecated).',
defaultsTo: false,
negatable: false,
hide: hide)
Expand All @@ -482,7 +482,8 @@ class CommandLineOptions {
// TODO(brianwilkerson) Remove the following option after we're sure that
// it's no longer being used.
..addFlag('enable-assert-initializers',
help: 'Enable parsing of asserts in constructor initializers.',
help:
'Enable parsing of asserts in constructor initializers (deprecated).',
defaultsTo: null,
negatable: false,
hide: hide)
Expand All @@ -502,7 +503,7 @@ class CommandLineOptions {
negatable: false,
hide: hide)
..addFlag('package-warnings',
help: 'Show warnings from package: imports.',
help: 'Show warnings from package: imports (deprecated).',
defaultsTo: false,
negatable: false,
hide: hide)
Expand All @@ -513,7 +514,8 @@ class CommandLineOptions {
splitCommas: false,
hide: hide)
..addFlag('use-cfe',
help: 'Enable the Dart 2.0 Common Front End implementation.',
help:
'Enable the Dart 2.0 Common Front End implementation (experimental).',
defaultsTo: false,
negatable: false,
hide: hide)
Expand Down

0 comments on commit 7470f41

Please sign in to comment.