am command line client: fixed bug
parent
2c039ffb1c
commit
eafa99f092
|
@ -40,13 +40,13 @@ func main() {
|
||||||
if len(os.Args) < 4 {
|
if len(os.Args) < 4 {
|
||||||
usage()
|
usage()
|
||||||
}
|
}
|
||||||
err = cl.Log(strings.Join(os.Args[4:], " "))
|
err = cl.Log(strings.Join(os.Args[3:], " "))
|
||||||
|
|
||||||
case "alert":
|
case "alert":
|
||||||
if len(os.Args) < 4 {
|
if len(os.Args) < 4 {
|
||||||
usage()
|
usage()
|
||||||
}
|
}
|
||||||
err = cl.Alert(strings.Join(os.Args[4:], " "))
|
err = cl.Alert(strings.Join(os.Args[3:], " "))
|
||||||
|
|
||||||
default:
|
default:
|
||||||
usage()
|
usage()
|
||||||
|
|
Reference in New Issue