Changeset 6299 for trunk/daemon/daemon.c


Ignore:
Timestamp:
Jul 8, 2008, 5:44:33 PM (14 years ago)
Author:
charles
Message:

sync the man pages with the cli/daemon/remote changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/daemon.c

    r6298 r6299  
    231231    { 'f', "foreground", "Run in the foreground instead of daemonizing", "f", 0, NULL },
    232232    { 'g', "config-dir",   "Where to look for configuration files", "g", 1, "<path>" },
    233     { 'p', "port",         "Port to listen for incoming peers (Default: "TR_DEFAULT_RPC_PORT_STR")", "p", 1, "<port>" },
     233    { 'p', "port",         "Port to listen for incoming peers (Default: "TR_DEFAULT_PORT_STR")", "p", 1, "<port>" },
    234234    { 't', "auth",         "Requre authentication",           "t", 0, NULL },
    235235    { 'T', "no-auth",      "Don't require authentication",    "T", 0, NULL },
    236236    { 'u', "username",     "Set username for authentication", "u", 1, "<username>" },
    237     { 's', "password",     "Set password for authentication", "s", 1, "<password>" },
     237    { 'v', "password",     "Set password for authentication", "v", 1, "<password>" },
    238238    { 'w', "download-dir", "Where to save downloaded data",   "w", 1, "<path>" },
    239239    { 0, NULL, NULL, NULL, 0, NULL }
     
    250250readargs( int argc, const char ** argv,
    251251          int * nofork, const char ** configDir, const char ** downloadDir,
    252           int * rpcPort, const char ** acl, int * authRequired, const char ** username, const char ** password,
     252          int * rpcPort, const char ** acl,
     253          int * authRequired, const char ** username, const char ** password,
    253254          int * blocklistEnabled )
    254255{
     
    268269            case 'T': *authRequired = FALSE; break;
    269270            case 'u': *username = optarg; break;
    270             case 's': *password = optarg; break;
     271            case 'v': *password = optarg; break;
    271272            case 'w': *downloadDir = optarg; break;
    272273            default: showUsage( ); break;
     
    354355    signal( SIGHUP, SIG_IGN );
    355356
    356     readargs( argc, (const char*)argv, &nofork, &configDir, &downloadDir,
     357    readargs( argc, (const char**)argv, &nofork, &configDir, &downloadDir,
    357358              &rpcPort, &acl, &authRequired, &username, &password,
    358359              &blocklistEnabled );
Note: See TracChangeset for help on using the changeset viewer.