We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e307dad commit 3d52897Copy full SHA for 3d52897
1 file changed
pkg/cmd/cmdutil.go
@@ -36,7 +36,9 @@ func getDefaultRequestOptions(cmd *cli.Command) []option.RequestOption {
36
option.WithHeader("X-Stainless-Package-Version", Version),
37
option.WithHeader("X-Stainless-Runtime", "cli"),
38
option.WithHeader("X-Stainless-CLI-Command", cmd.FullName()),
39
- option.WithAccessToken(cmd.String("access-token")),
+ }
40
+ if cmd.IsSet("access-token") {
41
+ opts = append(opts, option.WithAccessToken(cmd.String("access-token")))
42
}
43
44
// Override base URL if the --base-url flag is provided
0 commit comments