Skip to content

Commit

Permalink
fix: use type-safe getter for flag value
Browse files Browse the repository at this point in the history
  • Loading branch information
hampuslavin committed Dec 10, 2024
1 parent 902daf3 commit 62c5f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/better_command_runner/better_command_runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class BetterCommandRunner extends CommandRunner {
);

if (argParser.options.containsKey(BetterCommandRunnerFlags.analytics) &&
!topLevelResults[BetterCommandRunnerFlags.analytics]) {
!topLevelResults.flag(BetterCommandRunnerFlags.analytics)) {
_onAnalyticsEvent = null;
}

Expand Down

0 comments on commit 62c5f21

Please sign in to comment.