docs/ftp: improved default value description of port and username options

See #5551
This commit is contained in:
albertony 2021-09-11 18:29:57 +02:00
parent 3641727edb
commit 843b77aaaa
5 changed files with 22 additions and 16 deletions

View File

@ -53,10 +53,12 @@ func init() {
Required: true, Required: true,
}, { }, {
Name: "user", Name: "user",
Help: "FTP username, leave blank for current username, " + currentUser + ".", Help: "FTP username.",
Default: currentUser,
}, { }, {
Name: "port", Name: "port",
Help: "FTP port, leave blank to use default (21).", Help: "FTP port number.",
Default: 21,
}, { }, {
Name: "pass", Name: "pass",
Help: "FTP password.", Help: "FTP password.",

View File

@ -61,10 +61,12 @@ func init() {
Required: true, Required: true,
}, { }, {
Name: "user", Name: "user",
Help: "SSH username, leave blank for current username, " + currentUser + ".", Help: "SSH username.",
Default: currentUser,
}, { }, {
Name: "port", Name: "port",
Help: "SSH port, leave blank to use default (22).", Help: "SSH port number.",
Default: 22,
}, { }, {
Name: "pass", Name: "pass",
Help: "SSH password, leave blank to use ssh-agent.", Help: "SSH password, leave blank to use ssh-agent.",

View File

@ -339,7 +339,7 @@ and may be set in the config file.
--ftp-idle-timeout Duration Max time before closing idle connections (default 1m0s) --ftp-idle-timeout Duration Max time before closing idle connections (default 1m0s)
--ftp-no-check-certificate Do not verify the TLS certificate of the server --ftp-no-check-certificate Do not verify the TLS certificate of the server
--ftp-pass string FTP password (obscured) --ftp-pass string FTP password (obscured)
--ftp-port string FTP port, leave blank to use default (21) --ftp-port string FTP port number (default 21)
--ftp-shut-timeout Duration Maximum time to wait for data connection closing status (default 1m0s) --ftp-shut-timeout Duration Maximum time to wait for data connection closing status (default 1m0s)
--ftp-tls Use Implicit FTPS (FTP over TLS) --ftp-tls Use Implicit FTPS (FTP over TLS)
--ftp-tls-cache-size int Size of TLS session cache for all control and data connections (default 32) --ftp-tls-cache-size int Size of TLS session cache for all control and data connections (default 32)
@ -528,7 +528,7 @@ and may be set in the config file.
--sftp-md5sum-command string The command used to read md5 hashes --sftp-md5sum-command string The command used to read md5 hashes
--sftp-pass string SSH password, leave blank to use ssh-agent (obscured) --sftp-pass string SSH password, leave blank to use ssh-agent (obscured)
--sftp-path-override string Override path used by SSH connection --sftp-path-override string Override path used by SSH connection
--sftp-port string SSH port, leave blank to use default (22) --sftp-port string SSH port number (default 22)
--sftp-pubkey-file string Optional path to public key file --sftp-pubkey-file string Optional path to public key file
--sftp-server-command string Specifies the path or command to run a sftp server on the remote host --sftp-server-command string Specifies the path or command to run a sftp server on the remote host
--sftp-set-modtime Set the modified time on the remote if set (default true) --sftp-set-modtime Set the modified time on the remote if set (default true)

View File

@ -51,11 +51,11 @@ Choose a number from below, or type in your own value
1 / Connect to ftp.example.com 1 / Connect to ftp.example.com
\ "ftp.example.com" \ "ftp.example.com"
host> ftp.example.com host> ftp.example.com
FTP username, leave blank for current username, $USER FTP username
Enter a string value. Press Enter for the default (""). Enter a string value. Press Enter for the default ("$USER").
user> user>
FTP port, leave blank to use default (21) FTP port number
Enter a string value. Press Enter for the default (""). Enter a signed integer. Press Enter for the default (21).
port> port>
FTP password FTP password
y) Yes type in my own password y) Yes type in my own password

View File

@ -56,9 +56,11 @@ Choose a number from below, or type in your own value
1 / Connect to example.com 1 / Connect to example.com
\ "example.com" \ "example.com"
host> example.com host> example.com
SSH username, leave blank for current username, $USER SSH username
Enter a string value. Press Enter for the default ("$USER").
user> sftpuser user> sftpuser
SSH port, leave blank to use default (22) SSH port number
Enter a signed integer. Press Enter for the default (22).
port> port>
SSH password, leave blank to use ssh-agent. SSH password, leave blank to use ssh-agent.
y) Yes type in my own password y) Yes type in my own password