From 7f001c1f00bd0d178519ed4dd057cc1bd9006dfc Mon Sep 17 00:00:00 2001 From: "Sahdev P. Zala" Date: Sun, 19 Aug 2018 19:54:18 -0400 Subject: [PATCH] etcdctl: fix get command error when no arg provided The current error is incorrect. Providing a similar one to the del command. --- etcdctl/ctlv3/command/get_command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etcdctl/ctlv3/command/get_command.go b/etcdctl/ctlv3/command/get_command.go index 85848b57930..6de38c5ff3f 100644 --- a/etcdctl/ctlv3/command/get_command.go +++ b/etcdctl/ctlv3/command/get_command.go @@ -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 {