From e49700181c4e78c36c4f6a39ea643c668fc5f4ee Mon Sep 17 00:00:00 2001 From: Denis Titusov Date: Thu, 27 Jan 2022 12:21:20 +0300 Subject: [PATCH] fix: Change the application flags order avoiding panics This commit solves issue alecthomas/kong#264 --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index de4301a..742bc9b 100644 --- a/context.go +++ b/context.go @@ -582,7 +582,7 @@ func (c *Context) Resolve() error { }) } } - c.Path = append(inserted, c.Path...) + c.Path = append(c.Path, inserted...) return nil }