1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-10 06:02:57 +00:00

add -v --verify to transmission-remote's getopt handling

This commit is contained in:
Charles Kerr 2008-03-18 17:59:52 +00:00
parent 0de6757bdf
commit 549aa1679a

View file

@ -261,6 +261,7 @@ usage( const char * msg, ... )
" -t --type mac Use the MacOS X frontend\n" " -t --type mac Use the MacOS X frontend\n"
" -u --upload-limit <int> Max upload rate in KiB/s\n" " -u --upload-limit <int> Max upload rate in KiB/s\n"
" -U --upload-unlimited No upload rate limit\n" " -U --upload-unlimited No upload rate limit\n"
" -v --verify <hash> Verify the torrent's local data\n"
" -x --proxy Use proxy command to connect to frontend\n", " -x --proxy Use proxy command to connect to frontend\n",
getmyname(), getmyname(), LONG_VERSION_STRING ); getmyname(), getmyname(), LONG_VERSION_STRING );
exit( 0 ); exit( 0 );
@ -269,7 +270,7 @@ usage( const char * msg, ... )
int int
readargs( int argc, char ** argv, struct opts * opts ) readargs( int argc, char ** argv, struct opts * opts )
{ {
char optstr[] = "a:c:d:DeEf:hilmMp:qr:s:S:t:u:Ux"; char optstr[] = "a:c:d:DeEf:hilmMp:qr:s:S:t:u:Uxv:";
struct option longopts[] = struct option longopts[] =
{ {
{ "add", required_argument, NULL, 'a' }, { "add", required_argument, NULL, 'a' },