add flags for file to listener

This commit is contained in:
Sławosz
2013-08-19 19:00:08 +02:00
parent 719fd471f3
commit 6bb24697b2
+4 -1
View File
@@ -18,7 +18,8 @@ type ListenerSettings struct {
Port int
Address string
ReplayAddress string
ReplayAddress string
FileToReplyPath string
ReplayLimit int
@@ -48,5 +49,7 @@ func init() {
flag.StringVar(&Settings.ReplayAddress, "r", defaultReplayAddress, "Address of replay server.")
flag.StringVar(&Settings.FileToReplyPath, "file", nil, "File to store captured requests")
flag.BoolVar(&Settings.Verbose, "verbose", false, "Log requests")
}