From 919a180ad2f8a079a2852c04ad7a78e4528bd485 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 18 May 2020 19:53:13 +0100 Subject: [PATCH] config: make config show take "remote:" as well as "remote" --- cmd/config/config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/config/config.go b/cmd/config/config.go index 379506455..64450a6ee 100644 --- a/cmd/config/config.go +++ b/cmd/config/config.go @@ -6,6 +6,7 @@ import ( "fmt" "os" "sort" + "strings" "github.com/pkg/errors" "github.com/rclone/rclone/cmd" @@ -70,7 +71,8 @@ var configShowCommand = &cobra.Command{ if len(args) == 0 { config.ShowConfig() } else { - config.ShowRemote(args[0]) + name := strings.TrimRight(args[0], ":") + config.ShowRemote(name) } }, }