diff --git a/internal/configuration/request/request.go b/internal/configuration/request/request.go index 120c2db..1c3fafd 100644 --- a/internal/configuration/request/request.go +++ b/internal/configuration/request/request.go @@ -22,15 +22,16 @@ func initDataOption() { cobraParamName := "data" cobraValue := new(customtypes.String) defaultValue := customtypes.String("") + envVar := "PINGCTL_REQUEST_DATA" options.RequestDataOption = options.Option{ CobraParamName: cobraParamName, CobraParamValue: cobraValue, DefaultValue: &defaultValue, - EnvVar: "", // No environment variable + EnvVar: envVar, Flag: &pflag.Flag{ Name: cobraParamName, - Usage: "The data to send in the request. Use prefix '@' to specify data filepath instead of raw data.", + Usage: fmt.Sprintf("The data to send in the request. Use prefix '@' to specify data filepath instead of raw data. Also configurable via environment variable %s.", envVar), Value: cobraValue, DefValue: "", },