mirror of https://github.com/ledisdb/ledisdb.git
cli trim single quote
This commit is contained in:
parent
8e1552e69d
commit
c6fef170b0
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue