diff --git a/cli/transmissioncli.c b/cli/transmissioncli.c index 0778b28a8..aafd23ee3 100644 --- a/cli/transmissioncli.c +++ b/cli/transmissioncli.c @@ -26,70 +26,40 @@ #include #include #include -#include #include #include #include #include #include /* tr_metainfoFree */ +#include #include /* tr_wait */ #include /* tr_webRun */ +#define MY_NAME "transmission-cli" -/* macro to shut up "unused parameter" warnings */ -#ifdef __GNUC__ -#define UNUSED __attribute__((unused)) -#else -#define UNUSED -#endif - -const char * USAGE = -"Usage: %s [-car[-m]] [-dfginpsuv] [-h] file.torrent [output-dir]\n\n" -"Options:\n" -" -h, --help Print this help and exit\n" -" -i, --info Print metainfo and exit\n" -" -s, --scrape Print counts of seeders/leechers and exit\n" -" -V, --version Print the version number and exit\n" -" -c, --create-from Create torrent from the specified source file.\n" -" -a, --announce Used in conjunction with -c.\n" -" -g, --config-dir Where to look for configuration files\n" -" -o, --output-dir Where to save downloaded data\n" -" -r, --private Used in conjunction with -c.\n" -" -m, --comment Adds an optional comment when creating a torrent.\n" -" -d, --download Max download rate (-1 = no limit, default = -1)\n" -" -f, --finish