From eafa99f092d57370233ba3abd9e2495b94b1ba23 Mon Sep 17 00:00:00 2001 From: "J. David Lee" Date: Tue, 11 Jun 2019 06:36:36 +0200 Subject: [PATCH] am command line client: fixed bug --- cmd/am/am.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/am/am.go b/cmd/am/am.go index 2b3caba..d9cc46a 100644 --- a/cmd/am/am.go +++ b/cmd/am/am.go @@ -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()