summaryrefslogtreecommitdiffstats
path: root/exchange_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'exchange_test.go')
-rw-r--r--exchange_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/exchange_test.go b/exchange_test.go
index dcb68b1..89e7393 100644
--- a/exchange_test.go
+++ b/exchange_test.go
@@ -3,6 +3,7 @@ package exchange
import (
"bytes"
"encoding/json"
+ "flag"
"log"
"net/url"
"os"
@@ -29,7 +30,8 @@ const (
var apiKey string
func TestMain(m *testing.M) {
- debug = true
+ flag.BoolVar(&debug, "debug", false, "log debug info to stderr")
+ flag.Parse()
// Load API key
buf, err := os.ReadFile(keyFile)