[tor-commits] [flashproxy/master] Alphabetize command line options.

dcf at torproject.org dcf at torproject.org
Thu May 30 23:40:11 UTC 2013


commit 85476b9eb342405a4ad34aa823cc6cfca0ff8f8a
Author: David Fifield <david at bamsoftware.com>
Date:   Thu May 30 15:05:38 2013 -0700

    Alphabetize command line options.
---
 websocket-transport/websocket-server.go |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/websocket-transport/websocket-server.go b/websocket-transport/websocket-server.go
index 27fc7e2..365ebc6 100644
--- a/websocket-transport/websocket-server.go
+++ b/websocket-transport/websocket-server.go
@@ -201,12 +201,12 @@ func startListener(addr *net.TCPAddr) (*net.TCPListener, error) {
 }
 
 func main() {
-	var defaultPort int
 	var logFilename string
+	var defaultPort int
 
 	flag.Usage = usage
-	flag.IntVar(&defaultPort, "port", 0, "port to listen on if unspecified by Tor")
 	flag.StringVar(&logFilename, "log", "", "log file to write to")
+	flag.IntVar(&defaultPort, "port", 0, "port to listen on if unspecified by Tor")
 	flag.Parse()
 
 	if logFilename != "" {





More information about the tor-commits mailing list