forked from TrueCloudLab/rclone
config: make config show take "remote:" as well as "remote"
This commit is contained in:
parent
951099dbed
commit
919a180ad2
1 changed files with 3 additions and 1 deletions
|
@ -6,6 +6,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"sort"
|
"sort"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/rclone/rclone/cmd"
|
"github.com/rclone/rclone/cmd"
|
||||||
|
@ -70,7 +71,8 @@ var configShowCommand = &cobra.Command{
|
||||||
if len(args) == 0 {
|
if len(args) == 0 {
|
||||||
config.ShowConfig()
|
config.ShowConfig()
|
||||||
} else {
|
} else {
|
||||||
config.ShowRemote(args[0])
|
name := strings.TrimRight(args[0], ":")
|
||||||
|
config.ShowRemote(name)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue