Ignore:
Timestamp:
Mar 5, 2016, 5:27:40 PM (6 years ago)
Author:
mikedld
Message:

#5743: Use -rad as short form of --remove-and-delete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/remote.c

    r14633 r14707  
    275275    { 'r', "remove",                 "Remove the current torrent(s)", "r",  0, NULL },
    276276    { 930, "peers",                  "Set the maximum number of peers for the current torrent(s) or globally", "pr", 1, "<max>" },
    277     { 'R', "remove-and-delete",      "Remove the current torrent(s) and delete local data", NULL, 0, NULL },
     277    { 840, "remove-and-delete",      "Remove the current torrent(s) and delete local data", "rad", 0, NULL },
    278278    { 800, "torrent-done-script",    "Specify a script to run when a torrent finishes", NULL, 1, "<file>" },
    279279    { 801, "no-torrent-done-script", "Don't run a script when torrents finish", NULL, 0, NULL },
     
    472472
    473473      case 'r': /* remove */
    474       case 'R': /* remove and delete */
     474      case 840: /* remove and delete */
    475475        return MODE_TORRENT_REMOVE;
    476476
     
    22782278            }
    22792279            case 'r':
    2280             case 'R':
     2280            case 840:
    22812281            {
    22822282                tr_variant * args;
     
    22852285                tr_variantDictAddStr (top, TR_KEY_method, "torrent-remove");
    22862286                args = tr_variantDictAddDict (top, ARGUMENTS, 2);
    2287                 tr_variantDictAddBool (args, TR_KEY_delete_local_data, c=='R');
     2287                tr_variantDictAddBool (args, TR_KEY_delete_local_data, c == 840);
    22882288                addIdArg (args, id, NULL);
    22892289                status |= flush (rpcurl, &top);
Note: See TracChangeset for help on using the changeset viewer.