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; }