Skip to content

Commit

Permalink
Fix deprecation doc comment (#103776)
Browse files Browse the repository at this point in the history
Point users of boolArgDeprecated to boolArg rather than to
boolArgDeprecated in order to avoid losing users to infinite loops or
stack overflows depending on their implementation.
  • Loading branch information
cbracken authored May 14, 2022
1 parent a866f3a commit 28aaa1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/flutter_tools/lib/src/runner/flutter_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,7 @@ abstract class FlutterCommand extends Command<void> {
ApplicationPackageFactory? applicationPackages;

/// Gets the parsed command-line option named [name] as a `bool`.
/// This has been deprecated, use [boolArgDeprecated] instead.
/// This has been deprecated, use [boolArg] instead.
bool boolArgDeprecated(String name) => argResults?[name] as bool? ?? false;

/// Gets the parsed command-line option named [name] as a `bool?`.
Expand Down

0 comments on commit 28aaa1e

Please sign in to comment.