cmd: better help

This commit is contained in:
Feross Aboukhadijeh 2015-07-06 16:56:36 -07:00
parent 422db58a4e
commit 7ea2a138d3

View File

@ -40,15 +40,15 @@ if (argv.help) {
bittorrent-tracker - Start a bittorrent tracker server bittorrent-tracker - Start a bittorrent tracker server
Usage: Usage:
bittorrent-tracker bittorrent-tracker [OPTIONS]
Options: Options:
-p, --port [number] change the port [default: 8000] -p, --port [number] change the port [default: 8000]
--trust-proxy trust 'x-forwarded-for' header from reverse proxy --trust-proxy trust 'x-forwarded-for' header from reverse proxy
--interval tell clients to announce on this interval (ms) --interval tell clients to announce on this interval (ms)
--http enable http server [default: true] --http enable http server? [default: true]
--udp enable udp server [default: true] --udp enable udp server? [default: true]
--ws enable websocket server [default: false] --ws enable websocket server? [default: false]
-q, --quiet only show error output -q, --quiet only show error output
-s, --silent show no output -s, --silent show no output
-v, --version print the current version -v, --version print the current version