cenkalti / rain

🌧 BitTorrent client and library in Go
MIT License
971 stars 75 forks source link

--url option doesn't available with `rain client console` command #173

Closed djdejawu closed 3 hours ago

djdejawu commented 3 hours ago
NAME:
   rain client - send rpc request to server

USAGE:
   rain client command [command options] [arguments...]

COMMANDS:

   Actions:
     add             add torrent or magnet
     remove          remove torrent
     clean-database  clean session database
     add-peer        add peer to torrent
     add-tracker     add tracker to torrent
     announce        announce to tracker
     verify          verify files
     start           start torrent
     stop            stop torrent
     start-all       start all torrents
     stop-all        stop all torrents
     move            move torrent to another server

   Getters:
     version        server version
     list           list torrents
     stats          get stats of torrent
     session-stats  get stats of session
     trackers       get trackers of torrent
     webseeds       get webseed sources of torrent
     files          get file list of torrent
     file-stats     get stats of files in torrent
     peers          get peers of torrent
     torrent        save torrent file
     magnet         get magnet link

   Other:
     console  show client console

OPTIONS:
   --url value      URL of RPC server (default: "http://127.0.0.1:7246")
   --timeout value  request timeout (default: 10s)
   --help, -h       show help

try to start console with --url option

# rain client console --url http://192.168.1.3:7777
Incorrect Usage: flag provided but not defined: -url

NAME:
   rain client console - show client console

USAGE:
   rain client console [command options] [arguments...]

CATEGORY:
   Other

OPTIONS:
   --columns value  (default: "# ID Name")

any suggestions?

cenkalti commented 3 hours ago

That options must be passed after client argument.

Correct usage is:

rain client --url "http://127.0.0.1:7246" console
djdejawu commented 3 hours ago

it's must be well documented ^_^