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:
@@ -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?`.
|
||||
|
||||
Reference in New Issue
Block a user