From e9efd7811dc02ddb9430a49ba3e94f906432ccf2 Mon Sep 17 00:00:00 2001 From: James Maloney Date: Mon, 23 Jan 2023 12:38:03 -0700 Subject: [PATCH] fixes 'findApi' when the help command is used --- cli/cli.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/cli.go b/cli/cli.go index 18b91b4..c00a1ef 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -735,6 +735,7 @@ func Run() error { viper.Set("rsh-header", headers) } profile, _ := GlobalFlags.GetString("rsh-profile") + viper.Set("rsh-profile", profile) // Now that global flags are parsed we can enable verbose mode if requested. if viper.GetBool("rsh-verbose") {