Changeset 6307 for trunk/cli/cli.c


Ignore:
Timestamp:
Jul 9, 2008, 3:39:53 PM (14 years ago)
Author:
charles
Message:

(libT) let tr_getopt() support short options' arguments to be embedded, such as -p51413

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli/cli.c

    r6306 r6307  
    240240    }
    241241    if( peerPort < 1 || peerPort > 65535 ) {
    242         printf( "Invalid port '%d'\n", peerPort );
     242        printf( "Error: Port must between 1 and 65535; got %d\n", peerPort );
    243243        return EXIT_FAILURE;
    244244    }
    245245    if( peerSocketTOS < 0 || peerSocketTOS > 255 ) {
    246         printf( "Invalid TOS '%d'\n", peerSocketTOS );
     246        printf( "Error: Port must between 0 and 255; got %d\n", peerSocketTOS );
    247247        return EXIT_FAILURE;
    248248    }
     
    393393        if( gotsig ) {
    394394            gotsig = 0;
    395             printf( "stopping torrent...\n" );
     395            printf( "\nStopping torrent...\n" );
    396396            tr_torrentStop( tor );
    397397        }
Note: See TracChangeset for help on using the changeset viewer.