Browse Source

Merge pull request #10028 from spzala/geterror

etcdctl: fix get command error when no arg provided
Gyuho Lee 7 years ago
parent
commit
2921ab670f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      etcdctl/ctlv3/command/get_command.go

+ 1 - 1
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 {