diff options
Diffstat (limited to 'cmd/utils')
-rw-r--r-- | cmd/utils/cmd.go | 1 | ||||
-rw-r--r-- | cmd/utils/flags.go | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index 7d299026b..eb7907b0c 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -92,6 +92,7 @@ func PromptPassword(prompt string, warnTerm bool) (string, error) { } fmt.Print(prompt) input, err := bufio.NewReader(os.Stdin).ReadString('\n') + input = strings.TrimRight(input, "\r\n") fmt.Println() return input, err } diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 10aa48735..a00466d0a 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -240,7 +240,7 @@ var ( } RPCCORSDomainFlag = cli.StringFlag{ Name: "rpccorsdomain", - Usage: "Domains from which to accept cross origin requests (browser enforced)", + Usage: "Comma separated list of domains from which to accept cross origin requests (browser enforced)", Value: "", } RPCApiFlag = cli.StringFlag{ |