diff --git a/README.md b/README.md index c4a23b5..8db4c4c 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ This repository contains the Nebula Graph Console for Nebula Graph 3.x. Nebula G | `-P/-port` | Sets the port number of the graphd service. | | `-u/-user` | Sets the username of your Nebula Graph account. See [authentication](https://docs.nebula-graph.io/2.0/7.data-security/1.authentication/1.authentication/). | | `-p/-password` | Sets the password of your Nebula Graph account. | - | `-t/-timeout` | Sets an integer-type timeout threshold for the connection. The unit is second. The default value is 120. | + | `-t/-timeout` | Sets an integer-type timeout threshold for the connection. The unit is millisecond. The default value is 120. | | `-e/-eval` | Sets a string-type nGQL statement. The nGQL statement is executed once the connection succeeds. The connection stops after the result is returned. | | `-f/-file` | Sets the path of an nGQL file. The nGQL statements in the file are executed once the connection succeeds. You'll get the return messages and the connection stops then. | | `-enable_ssl` | Enable SSL when connecting to Nebula Graph | diff --git a/main.go b/main.go index 57c7e6b..4588a32 100644 --- a/main.go +++ b/main.go @@ -440,7 +440,7 @@ var ( port *int = flag.Int("P", -1, "The Nebula Graph Port") username *string = flag.String("u", "", "The Nebula Graph login user name") password *string = flag.String("p", "", "The Nebula Graph login password") - timeout *int = flag.Int("t", 0, "The Nebula Graph client connection timeout in seconds, 0 means never timeout") + timeout *int = flag.Int("t", 0, "The Nebula Graph client connection timeout in millisecond, 0 means never timeout") script *string = flag.String("e", "", "The nGQL directly") file *string = flag.String("f", "", "The nGQL script file name") version *bool = flag.Bool("v", false, "The Nebula Console version") @@ -457,7 +457,7 @@ func init() { flag.IntVar(port, "port", -1, "The Nebula Graph Port") flag.StringVar(username, "user", "", "The Nebula Graph login user name") flag.StringVar(password, "password", "", "The Nebula Graph login password") - flag.IntVar(timeout, "timeout", 0, "The Nebula Graph client connection timeout in seconds, 0 means never timeout") + flag.IntVar(timeout, "timeout", 0, "The Nebula Graph client connection timeout in millisecond, 0 means never timeout") flag.StringVar(script, "eval", "", "The nGQL directly") flag.StringVar(file, "file", "", "The nGQL script file name") }