Merge pull request #10028 from spzala/geterror

etcdctl: fix get command error when no arg provided
This commit is contained in:
Gyuho Lee 2018-08-20 12:56:41 -07:00 committed by GitHub
commit 2921ab670f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ func getCommandFunc(cmd *cobra.Command, args []string) {
func getGetOp(args []string) (string, []clientv3.OpOption) {
if len(args) == 0 {
ExitWithError(ExitBadArgs, fmt.Errorf("range command needs arguments."))
ExitWithError(ExitBadArgs, fmt.Errorf("get command needs one argument as key and an optional argument as range_end."))
}
if getPrefix && getFromKey {