diff --git a/cli/cli.go b/cli/cli.go index fd45576..bb67a12 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -736,6 +736,7 @@ func Run() (returnErr 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") {