set args must be 2

This commit is contained in:
siddontang 2014-06-11 16:49:17 +08:00
parent 655db07604
commit 5a902fc9d1
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ func getCommand(c *client) error {
func setCommand(c *client) error {
args := c.args
if len(args) < 2 {
if len(args) != 2 {
return ErrCmdParams
}