From 33d08c39bea6f3f1d829dd95b25d4ab43b99ee2a Mon Sep 17 00:00:00 2001 From: dearchap Date: Fri, 14 Oct 2022 02:46:00 -0400 Subject: [PATCH] Update app.go Co-authored-by: Dan Buch --- app.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.go b/app.go index 73a4e3f2f1..e51400372a 100644 --- a/app.go +++ b/app.go @@ -306,7 +306,8 @@ func (a *App) RunContext(ctx context.Context, arguments []string) (err error) { } // This is a stub function to keep public API unchanged from old code -// No one should really use this. Always use a.Run to execute app +// +// Deprecated: use App.Run or App.RunContext func (a *App) RunAsSubcommand(ctx *Context) (err error) { return a.RunContext(ctx.Context, ctx.Args().Slice()) }