make usage warning more helpful
This commit is contained in:
parent
c4948952b2
commit
906d5956a0
1 changed files with 4 additions and 0 deletions
|
@ -106,6 +106,10 @@ func (g *Game) cmdTree(dst io.Writer, argv []string) {
|
||||||
func (g *Game) cmdQuery(dst io.Writer, argv []string) {
|
func (g *Game) cmdQuery(dst io.Writer, argv []string) {
|
||||||
if len(argv) < 2 || len(argv) > 3 {
|
if len(argv) < 2 || len(argv) > 3 {
|
||||||
fmt.Fprintln(dst, "Usage: query BEHAVIOUR [ANCESTOR_ID]")
|
fmt.Fprintln(dst, "Usage: query BEHAVIOUR [ANCESTOR_ID]")
|
||||||
|
fmt.Fprint(dst, "Behaviours:")
|
||||||
|
for _, b := range Behaviours {
|
||||||
|
fmt.Fprintf(dst, " %s", b.Name())
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue