1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-21 10:43:26 +00:00

Fixed test errors -- parse test flags in one place

This commit is contained in:
Gilbert Chen
2019-11-25 15:44:03 -05:00
parent 694494ea54
commit 0abb4099f6
2 changed files with 2 additions and 9 deletions

View File

@@ -27,6 +27,7 @@ var testRateLimit int
var testQuickMode bool
var testThreads int
var testFixedChunkSize bool
var testRSAEncryption bool
func init() {
flag.StringVar(&testStorageName, "storage", "", "the test storage to use")
@@ -34,6 +35,7 @@ func init() {
flag.BoolVar(&testQuickMode, "quick", false, "quick test")
flag.IntVar(&testThreads, "threads", 1, "number of downloading/uploading threads")
flag.BoolVar(&testFixedChunkSize, "fixed-chunk-size", false, "fixed chunk size")
flag.BoolVar(&testRSAEncryption, "rsa", false, "enable RSA encryption")
flag.Parse()
}