From 62c5f21d9d9f6c612a34bc4e350b7d16044c1c07 Mon Sep 17 00:00:00 2001 From: Hampus Lavin Date: Tue, 10 Dec 2024 09:12:32 +0100 Subject: [PATCH] fix: use type-safe getter for flag value --- lib/src/better_command_runner/better_command_runner.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/better_command_runner/better_command_runner.dart b/lib/src/better_command_runner/better_command_runner.dart index 659dc39..532c058 100644 --- a/lib/src/better_command_runner/better_command_runner.dart +++ b/lib/src/better_command_runner/better_command_runner.dart @@ -132,7 +132,7 @@ class BetterCommandRunner extends CommandRunner { ); if (argParser.options.containsKey(BetterCommandRunnerFlags.analytics) && - !topLevelResults[BetterCommandRunnerFlags.analytics]) { + !topLevelResults.flag(BetterCommandRunnerFlags.analytics)) { _onAnalyticsEvent = null; }