etcdctl: fix get command error when no arg provided

The current error is incorrect. Providing a similar one to the del
command.
release-3.4
Sahdev P. Zala 2018-08-19 19:54:18 -04:00
parent 0a25f49d61
commit 7f001c1f00
1 changed files with 1 additions and 1 deletions

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 {