Fix deprecation doc comment (#103776)

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.
This commit is contained in:
Chris Bracken 2022-05-13 19:23:07 -07:00 committed by GitHub
parent a866f3a965
commit 28aaa1e99e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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?`.