diff --git a/cli/cli.cc b/cli/cli.cc index 74c73b14f..eb29d78e6 100644 --- a/cli/cli.cc +++ b/cli/cli.cc @@ -167,8 +167,8 @@ void onTorrentFileDownloaded(tr_web::FetchResponse const& response) { if (c == 'g') { + tr_optind = ind; return my_optarg; - break; } }