mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
config: make config show take "remote:" as well as "remote"
This commit is contained in:
@@ -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)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user