From 4251535e94720c3288433a6e39e6819fe47b3b8a Mon Sep 17 00:00:00 2001 From: Chris Scott Date: Fri, 2 Apr 2021 12:31:02 -0400 Subject: [PATCH] Don't require being logged in to call help command --- internal/cli/root.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/cli/root.go b/internal/cli/root.go index b7a242080..4225429b8 100644 --- a/internal/cli/root.go +++ b/internal/cli/root.go @@ -53,6 +53,11 @@ func Execute() { return nil } + // Getting help shouldn't trigger a login. + if cmd.CalledAs() == "help" && cmd.Parent().Use == "auth0" { + return nil + } + // Initialize everything once. Later callers can then // freely assume that config is fully primed and ready // to go.