mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 02:56:25 +08:00
Pass flags on to fs.Config
This commit is contained in:
parent
37d59db94e
commit
025e5f3f0c
|
@ -518,6 +518,13 @@ func main() {
|
|||
args := flag.Args()
|
||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||
|
||||
// Pass on some flags to fs.Config
|
||||
fs.Config.Verbose = *verbose
|
||||
fs.Config.Quiet = *quiet
|
||||
fs.Config.ModifyWindow = *modifyWindow
|
||||
fs.Config.Checkers = *checkers
|
||||
fs.Config.Transfers = *transfers
|
||||
|
||||
// Setup profiling if desired
|
||||
if *cpuprofile != "" {
|
||||
f, err := os.Create(*cpuprofile)
|
||||
|
|
Loading…
Reference in New Issue
Block a user