mirror of
https://github.com/rclone/rclone.git
synced 2025-08-18 01:20:16 +02:00
cmd: Note commands which need obscured input in the docs - fixes #4252
This commit is contained in:
@@ -486,6 +486,9 @@ func AddBackendFlags() {
|
||||
help = help[:nl]
|
||||
}
|
||||
help = strings.TrimSpace(help)
|
||||
if opt.IsPassword {
|
||||
help += " (obscured)"
|
||||
}
|
||||
flag := pflag.CommandLine.VarPF(opt, name, opt.ShortOpt, help)
|
||||
if _, isBool := opt.Default.(bool); isBool {
|
||||
flag.NoOptDefVal = "true"
|
||||
|
Reference in New Issue
Block a user