echo "add a torrent to a currently running transmission-daemon, requires that transmission-daemon is running on this machine, or on a server, and that"
echo " the current machine has the program transmission-remote installed. If using remote option, ensure the remote daemon config has your local machine's"
echo " IP address added to it's whitelist"
echo ""
echo " If adding a torrent locally (without -r), the script trans-init will be called to initialize the transmission-daemon on the local machine if it is not already running"
echo ""
echo "usage:"
echo " trans-add URL -> add magnet link to transmission-daemon running on local machine"
echo " trans-add -r URL -> add magnet link to transmission-daemon running on remote machine, IP address is defined by \$TRNS_IP environment variable"
echo " trans-add -r URL path/to/directory/ -> add magnet link to transmission-daemon running on remote machine, set download dir to be path defined by \$TRNS_DL_DIR/path/to/directory"
echo " trans-add URL path/to/directory/ -> add magnet link to transmission-daemon running on local machine, set download dir to be path defined by \$TRNS_DL_DIR/path/to/directory"
echo " trans-add FILE -> add .torrent file to transmission-daemon running on local machine"
echo " trans-add -r FILE -> add .torrent file to transmission-daemon running on remote machine"