From 42aa119e7f34a08f39eda2fa219353abe8146bc0 Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Thu, 26 Aug 2021 10:25:55 +1000 Subject: [PATCH] usage --- engine/repl.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/repl.go b/engine/repl.go index 4de8892..f3097a8 100644 --- a/engine/repl.go +++ b/engine/repl.go @@ -56,6 +56,9 @@ func (g *Game) REPL(src io.Reader, dst io.Writer, assets fs.FS) error { g.Enable() g.Show() case "tree": + if len(tok) < 1 || len(tok) > 2 { + fmt.Println(dst, "Usage: tree [ID]") + } var c interface{} = g if len(tok) == 2 { // subtree