Browse Source

Merge pull request #51 from kevinburke/error-msg

Slightly better error message if you type ngrok with no args
inconshreveable 11 years ago
parent
commit
b90a013ef4
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/ngrok/client/cli.go

+ 3 - 1
src/ngrok/client/cli.go

@@ -109,7 +109,9 @@ func parseArgs() (opts *Options, err error) {
 		flag.Usage()
 		os.Exit(0)
 	case "":
-		err = fmt.Errorf("You must specify a local port to tunnel or an ngrok command.")
+		err = fmt.Errorf("Error: Specify a local port to tunnel to, or " +
+			"an ngrok command.\n\nExample: To expose port 80, run " +
+			"'ngrok 80'")
 		return
 
 	default: