Browse Source

strip out unused logging levels from help text. use dashed name for forward-consistency

Alan Shreve 10 years ago
parent
commit
76ef59fe5d
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/ngrok/client/cli.go
  2. 1 1
      src/ngrok/server/cli.go

+ 2 - 2
src/ngrok/client/cli.go

@@ -64,9 +64,9 @@ func ParseArgs() (opts *Options, err error) {
 		"Write log messages to this file. 'stdout' and 'none' have special meanings")
 
 	loglevel := flag.String(
-		"logLevel",
+		"log-level",
 		"DEBUG",
-		"The level of messages to log. One of: FINEST, FINE, DEBUG, TRACE, INFO, WARNING, ERROR, CRITICAL")
+		"The level of messages to log. One of: DEBUG, INFO, WARNING, ERROR")
 
 	authtoken := flag.String(
 		"authtoken",

+ 1 - 1
src/ngrok/server/cli.go

@@ -23,7 +23,7 @@ func parseArgs() *Options {
 	tlsCrt := flag.String("tlsCrt", "", "Path to a TLS certificate file")
 	tlsKey := flag.String("tlsKey", "", "Path to a TLS key file")
 	logto := flag.String("log", "stdout", "Write log messages to this file. 'stdout' and 'none' have special meanings")
-	loglevel := flag.String("logLevel", "DEBUG", "The level of messages to log. One of: FINEST, FINE, DEBUG, TRACE, INFO, WARNING, ERROR, CRITICAL")
+	loglevel := flag.String("log-level", "DEBUG", "The level of messages to log. One of: DEBUG, INFO, WARNING, ERROR")
 	flag.Parse()
 
 	return &Options{