From 253e4da7e9c97f7e26e9b57ce55b08d66d937464 Mon Sep 17 00:00:00 2001 From: nikk gitanes Date: Fri, 9 Feb 2024 01:08:59 +0300 Subject: [PATCH] Update main.go --- server/cmd/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/cmd/main.go b/server/cmd/main.go index e4f1d41..ad9e1f9 100644 --- a/server/cmd/main.go +++ b/server/cmd/main.go @@ -26,12 +26,12 @@ import ( ) type args struct { - Port string `arg:"-p" help:"web server port, default 8090"` + Port string `arg:"-p" help:"web server port (default 8090)"` Ssl bool `help:"enables https"` SslPort string `help:"web server ssl port, If not set, will be set to default 8091 or taken from db(if stored previously). Accepted if --ssl enabled."` SslCert string `help:"path to ssl cert file. If not set, will be taken from db(if stored previously) or default self-signed certificate/key will be generated. Accepted if --ssl enabled."` SslKey string `help:"path to ssl key file. If not set, will be taken from db(if stored previously) or default self-signed certificate/key will be generated. Accepted if --ssl enabled."` - Path string `arg:"-d" help:"database dir path"` + Path string `arg:"-d" help:"database and config dir path"` LogPath string `arg:"-l" help:"server log file path"` WebLogPath string `arg:"-w" help:"web access log file path"` RDB bool `arg:"-r" help:"start in read-only DB mode"` @@ -39,11 +39,11 @@ type args struct { DontKill bool `arg:"-k" help:"don't kill server on signal"` UI bool `arg:"-u" help:"open torrserver page in browser"` TorrentsDir string `arg:"-t" help:"autoload torrents from dir"` - TorrentAddr string `help:"Torrent client address, default :32000"` + TorrentAddr string `help:"Torrent client address, like 127.0.0.1:1337 (default :PeersListenPort)"` PubIPv4 string `arg:"-4" help:"set public IPv4 addr"` PubIPv6 string `arg:"-6" help:"set public IPv6 addr"` SearchWA bool `arg:"-s" help:"search without auth"` - MaxSize string `arg:"-m" help:"max allowed stream size"` + MaxSize string `arg:"-m" help:"max allowed stream size (in Bytes)"` } func (args) Version() string {