protected override async Task <int> OnExecuteAuthenticatedAsync(QBittorrentClient client, CommandLineApplication app, IConsole console) { var isAlternative = await client.GetAlternativeSpeedLimitsEnabledAsync(); if (Set == null) { console.WriteLineColored($"Alternative speed mode enabled: {isAlternative}", ColorScheme.Current.Normal); } else if (isAlternative != Set) { await client.ToggleAlternativeSpeedLimitsAsync(); } return(ExitCodes.Success); }