cli trim single quote

This commit is contained in:
siddontang 2014-07-01 16:23:44 +08:00
parent 8e1552e69d
commit c6fef170b0
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ func main() {
args := make([]interface{}, len(cmds[1:])) args := make([]interface{}, len(cmds[1:]))
for i := range args { for i := range args {
args[i] = strings.Trim(string(cmds[1+i]), "\"") args[i] = strings.Trim(string(cmds[1+i]), "\"'")
} }
r, err := c.Do(cmds[0], args...) r, err := c.Do(cmds[0], args...)
if err != nil { if err != nil {