Unverified Commit 28aaa1e9 authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

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.
parent a866f3a9
......@@ -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?`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment