am command line client: fixed bug

master
J. David Lee 2019-06-11 06:36:36 +02:00
parent 2c039ffb1c
commit eafa99f092
1 changed files with 2 additions and 2 deletions

View File

@ -40,13 +40,13 @@ func main() {
if len(os.Args) < 4 {
usage()
}
err = cl.Log(strings.Join(os.Args[4:], " "))
err = cl.Log(strings.Join(os.Args[3:], " "))
case "alert":
if len(os.Args) < 4 {
usage()
}
err = cl.Alert(strings.Join(os.Args[4:], " "))
err = cl.Alert(strings.Join(os.Args[3:], " "))
default:
usage()