From 3e213d134786be0b4b8cfc697431188c465f4c31 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Tue, 12 Nov 2019 08:19:30 +0000 Subject: [PATCH] Allow --debug to be set with K3S_DEBUG env var --- pkg/cli/cmds/root.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/cli/cmds/root.go b/pkg/cli/cmds/root.go index a01159db62..b18c5d8f05 100644 --- a/pkg/cli/cmds/root.go +++ b/pkg/cli/cmds/root.go @@ -25,6 +25,7 @@ func NewApp() *cli.App { Name: "debug", Usage: "Turn on debug logs", Destination: &debug, + EnvVar: "K3S_DEBUG", }, }