Pass flags on to fs.Config

This commit is contained in:
Nick Craig-Wood 2013-06-29 10:43:52 +01:00
parent 37d59db94e
commit 025e5f3f0c

View File

@ -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)