protected override async Task <int> OnExecuteTorrentSpecificAsync(QBittorrentClient client, CommandLineApplication app, IConsole console) { if (Enum.TryParse(Value, true, out TorrentContentPriority priority)) { await client.SetFilePriorityAsync(Hash, File, priority); } else { var contents = (await client.GetTorrentContentsAsync(Hash))?.ToList(); console.WriteLineColored(contents?[File]?.Priority.ToString(), ColorScheme.Current.Normal); } return(ExitCodes.Success); }