public async Task UseCommandLineArgs(List <CLICommand> commands) { TaskSettings taskSettings = FindCLITask(commands); foreach (CLICommand command in commands) { DebugHelper.WriteLine("CommandLine: " + command); if (command.IsCommand) { if (CheckCustomUploader(command) || CheckImageEffect(command) || await CheckCLIHotkey(command) || await CheckCLIWorkflow(command) || CheckNativeMessagingInput(command)) { } continue; } if (URLHelpers.IsValidURL(command.Command)) { UploadManager.DownloadAndUploadFile(command.Command, taskSettings); } else { UploadManager.UploadFile(command.Command, taskSettings); } } }