docs(cmd): update proxy flag comments

This commit is contained in:
iyear 2022-09-05 22:10:08 +08:00
parent 61dc24cc4b
commit 8c719c37d8
5 changed files with 5 additions and 5 deletions

View file

@ -27,7 +27,7 @@ var cmd = &cobra.Command{
func init() { func init() {
cmd.AddCommand(version.Cmd, login.Cmd, dl.Cmd) cmd.AddCommand(version.Cmd, login.Cmd, dl.Cmd)
cmd.PersistentFlags().String("proxy", "", "proxy address, only socks5 is supported") cmd.PersistentFlags().String("proxy", "", "proxy address, only socks5 is supported, format: protocol://username:password@host:port")
cmd.PersistentFlags().StringP("ns", "n", "", "namespace for Telegram session") cmd.PersistentFlags().StringP("ns", "n", "", "namespace for Telegram session")
docs := filepath.Join(consts.DocsPath, "command") docs := filepath.Join(consts.DocsPath, "command")

View file

@ -13,7 +13,7 @@ tdl -h
``` ```
-h, --help help for tdl -h, --help help for tdl
-n, --ns string namespace for Telegram session -n, --ns string namespace for Telegram session
--proxy string proxy address, only socks5 is supported --proxy string proxy address, only socks5 is supported, format: protocol://username:password@host:port
``` ```
### SEE ALSO ### SEE ALSO

View file

@ -27,7 +27,7 @@ tdl dl
``` ```
-n, --ns string namespace for Telegram session -n, --ns string namespace for Telegram session
--proxy string proxy address, only socks5 is supported --proxy string proxy address, only socks5 is supported, format: protocol://username:password@host:port
``` ```
### SEE ALSO ### SEE ALSO

View file

@ -22,7 +22,7 @@ tdl login
``` ```
-n, --ns string namespace for Telegram session -n, --ns string namespace for Telegram session
--proxy string proxy address, only socks5 is supported --proxy string proxy address, only socks5 is supported, format: protocol://username:password@host:port
``` ```
### SEE ALSO ### SEE ALSO

View file

@ -22,7 +22,7 @@ tdl version
``` ```
-n, --ns string namespace for Telegram session -n, --ns string namespace for Telegram session
--proxy string proxy address, only socks5 is supported --proxy string proxy address, only socks5 is supported, format: protocol://username:password@host:port
``` ```
### SEE ALSO ### SEE ALSO