diff --git a/core/team/plan.go b/core/team/plan.go index d99d0277..f66f3514 100644 --- a/core/team/plan.go +++ b/core/team/plan.go @@ -86,6 +86,7 @@ func init() { m.Cmdy(kit.Simple(kit.Keys(msg.Append(kit.KeyExtra(ice.CTX)), msg.Append(kit.KeyExtra(ice.CMD))), arg[2:])) }}, }, TASK), Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { + arg = kit.Slice(arg, 0, 2) begin_time, end_time := _plan_scope(m, 8, arg...) _plan_list(m, begin_time, end_time) m.PushPodCmd(cmd, arg...) diff --git a/misc/git/trend.go b/misc/git/trend.go index 0647f2cc..9c8da778 100644 --- a/misc/git/trend.go +++ b/misc/git/trend.go @@ -24,7 +24,7 @@ func init() { return } arg[0] = kit.Replace(arg[0], "src", "contexts") - m.Cmdy(TOTAL, arg) + m.Cmdy(TOTAL, kit.Slice(arg, 0, 2)) }}, }}) }