Ticket #322: cli-t322.2.diff
File cli-t322.2.diff, 2.5 KB (added by tiennou, 14 years ago) |
---|
-
cli/transmissioncli.1
95 95 no download limit. 96 96 .It Fl f, -finish Ar script 97 97 Specifies a shell script to be executed upon successful download. 98 .It Fl y, Fl -recheck 99 Force a recheck of the torrent data. 98 100 .Sh SIGNALS 99 101 In addition to these options, sending 100 102 .Nm -
cli/transmissioncli.c
55 55 " -p, --port <int> Port we should listen on (default = %d)\n" 56 56 " -s, --scrape Print counts of seeders/leechers and exit\n" 57 57 " -u, --upload <int> Maximum upload rate (-1 = no limit, default = 20)\n" 58 " -v, --verbose <int> Verbose level (0 to 2, default = 0)\n"; 58 " -v, --verbose <int> Verbose level (0 to 2, default = 0)\n" 59 " -y, --recheck Force a recheck of the torrent data\n"; 59 60 60 61 static int showHelp = 0; 61 62 static int showInfo = 0; … … 68 69 static char * torrentPath = NULL; 69 70 static char * savePath = "."; 70 71 static int natTraversal = 0; 72 static int recheckData = 0; 71 73 static sig_atomic_t gotsig = 0; 72 74 static sig_atomic_t manualUpdate = 0; 73 75 static tr_torrent * tor; … … 274 276 tr_manualUpdate( tor ); 275 277 } 276 278 } 279 280 if( recheckData ) 281 { 282 recheckData = 0; 283 tr_torrentRecheck( tor ); 284 } 277 285 278 286 s = tr_torrentStat( tor ); 279 287 … … 364 372 { "comment", required_argument, NULL, 'm' }, 365 373 { "announce", required_argument, NULL, 'a' }, 366 374 { "nat-traversal", no_argument, NULL, 'n' }, 375 { "recheck", no_argument, NULL, 'y' }, 367 376 { "output-dir", required_argument, NULL, 'o' }, 368 377 { 0, 0, 0, 0} }; 369 378 370 379 int c, optind = 0; 371 c = getopt_long( argc, argv, "hisrv:p:u:d:f:c:m:a:n:o ",380 c = getopt_long( argc, argv, "hisrv:p:u:d:f:c:m:a:n:o:y", 372 381 long_options, &optind ); 373 382 if( c < 0 ) 374 383 { … … 415 424 case 'n': 416 425 natTraversal = 1; 417 426 break; 427 case 'y': 428 recheckData = 1; 429 break; 418 430 case 'o': 419 431 savePath = optarg; 420 432 default: