From 28aaa1e99eedda7b40f17dc343a92fa3498a5731 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Fri, 13 May 2022 19:23:07 -0700 Subject: [PATCH] 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. --- packages/flutter_tools/lib/src/runner/flutter_command.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter_tools/lib/src/runner/flutter_command.dart b/packages/flutter_tools/lib/src/runner/flutter_command.dart index a58176558848..20bd201c3acc 100644 --- a/packages/flutter_tools/lib/src/runner/flutter_command.dart +++ b/packages/flutter_tools/lib/src/runner/flutter_command.dart @@ -1519,7 +1519,7 @@ abstract class FlutterCommand extends Command { 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?`.