Changeset 3974


Ignore:
Timestamp:
Nov 26, 2007, 4:39:11 PM (14 years ago)
Author:
charles
Message:

commit tiennou's "transmissioncli -f" patch for ticket #322

Location:
trunk/cli
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli/transmissioncli.1

    r3973 r3974  
    9696.It Fl f, -finish Ar script
    9797Specifies a shell script to be executed upon successful download.
     98.It Fl y, Fl -recheck
     99Force a recheck of the torrent data.
    98100.Sh SIGNALS
    99101In addition to these options, sending
  • trunk/cli/transmissioncli.c

    r3973 r3974  
    5656"  -s, --scrape         Print counts of seeders/leechers and exit\n"
    5757"  -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";
    5960
    6061static int           showHelp      = 0;
     
    6970static char        * savePath      = ".";
    7071static int           natTraversal  = 0;
     72static int           recheckData   = 0;
    7173static sig_atomic_t  gotsig        = 0;
    7274static sig_atomic_t  manualUpdate  = 0;
     
    274276                tr_manualUpdate( tor );
    275277            }
     278        }
     279       
     280        if( recheckData )
     281        {
     282            recheckData = 0;
     283            tr_torrentRecheck( tor );
    276284        }
    277285
     
    365373            { "announce", required_argument,    NULL, 'a' },
    366374            { "nat-traversal", no_argument,     NULL, 'n' },
     375            { "recheck",  no_argument,          NULL, 'y' },
    367376            { "output-dir", required_argument,  NULL, 'o' },
    368377            { 0, 0, 0, 0} };
    369378
    370379        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",
    372381                         long_options, &optind );
    373382        if( c < 0 )
     
    415424            case 'n':
    416425                natTraversal = 1;
     426                break;
     427            case 'y':
     428                recheckData = 1;
    417429                break;
    418430            case 'o':
Note: See TracChangeset for help on using the changeset viewer.