diff --git a/Makefile.am b/Makefile.am index 03f636cde..741baa0f2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -19,6 +19,7 @@ SUBDIRS = \ doc \ third-party \ libtransmission \ + utils \ $(DAEMON_DIR) \ $(CLI_DIR) \ $(GTK_DIR) \ diff --git a/cli/cli.c b/cli/cli.c index ce451e612..a4ced0d63 100644 --- a/cli/cli.c +++ b/cli/cli.c @@ -30,7 +30,6 @@ #include #include -#include #include #include /* tr_wait_msec */ #include @@ -39,27 +38,16 @@ #define LINEWIDTH 80 #define MY_NAME "transmissioncli" -static tr_bool showInfo = 0; -static tr_bool showScrape = 0; -static tr_bool isPrivate = 0; static tr_bool verify = 0; static sig_atomic_t gotsig = 0; static sig_atomic_t manualUpdate = 0; static const char * torrentPath = NULL; -static const char * sourceFile = NULL; -static const char * comment = NULL; - -#define MAX_ANNOUNCE 128 -static tr_tracker_info announce[MAX_ANNOUNCE]; -static int announceCount = 0; static const struct tr_option options[] = { - { 'a', "announce", "Set the new torrent's announce URL", "a", 1, "" }, { 'b', "blocklist", "Enable peer blocklists", "b", 0, NULL }, { 'B', "no-blocklist", "Disable peer blocklists", "B", 0, NULL }, - { 'c', "comment", "Set the new torrent's comment", "c", 1, "" }, { 'd', "downlimit", "Set max download speed in KiB/s", "d", 1, "" }, { 'D', "no-downlimit", "Don't limit the download speed", "D", 0, NULL }, { 910, "encryption-required", "Encrypt all peer connections", "er", 0, NULL }, @@ -67,13 +55,9 @@ static const struct tr_option options[] = { 912, "encryption-tolerated", "Prefer unencrypted peer connections", "et", 0, NULL }, { 'f', "finish", "Run a script when the torrent finishes", "f", 1, "