mirror of
https://github.com/rclone/rclone.git
synced 2025-08-15 16:22:47 +02:00
docs: automatically remove ending punctuation from first line of backend option help string when used for flag usage
See #5538
This commit is contained in:
@ -523,7 +523,7 @@ func AddBackendFlags() {
|
||||
if nl := strings.IndexRune(help, '\n'); nl >= 0 {
|
||||
help = help[:nl]
|
||||
}
|
||||
help = strings.TrimSpace(help)
|
||||
help = strings.TrimRight(strings.TrimSpace(help), ".!?")
|
||||
if opt.IsPassword {
|
||||
help += " (obscured)"
|
||||
}
|
||||
|
Reference in New Issue
Block a user