From c7551a6dbdd62e6d3c7afd5c784f0e0555d44a89 Mon Sep 17 00:00:00 2001 From: shylinux Date: Thu, 14 Oct 2021 04:15:11 +0800 Subject: [PATCH] opt some --- type.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/type.go b/type.go index da156abe..f5325841 100644 --- a/type.go +++ b/type.go @@ -306,7 +306,7 @@ func (m *Message) Starts(name string, help string, arg ...string) *Message { return m } func (m *Message) Travel(cb interface{}) *Message { - list := []*Context{m.target} + list := []*Context{m.root.target} for i := 0; i < len(list); i++ { switch cb := cb.(type) { case func(*Context, *Context):