Skip to content

Commit

Permalink
Merge pull request #14089 from justinsb/positional_to_stderr
Browse files Browse the repository at this point in the history
Positional deprecation warning should go to stderr
  • Loading branch information
k8s-ci-robot authored Aug 3, 2022
2 parents 5252c45 + 85fb99c commit 2706b05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/kops/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,10 @@ func (c *RootCmd) clusterNameArgsAllowNoCluster(clusterName *string) func(cmd *c
// Everything else is an error.
func (c *RootCmd) ProcessArgs(args []string) error {
if len(args) > 0 {
fmt.Printf("\n")
fmt.Printf("\nClusterName as positional argument is deprecated and will be removed\n")
fmt.Printf("Use `KOPS_FEATURE_FLAGS=PositionalClusterArg` to revert to the old behavior.")
fmt.Printf("\n")
fmt.Fprintf(os.Stderr, "\n")
fmt.Fprintf(os.Stderr, "\nClusterName as positional argument is deprecated and will be removed\n")
fmt.Fprintf(os.Stderr, "Use `KOPS_FEATURE_FLAGS=PositionalClusterArg` to revert to the old behavior.")
fmt.Fprintf(os.Stderr, "\n")
}
if !featureflag.PositionalClusterArg.Enabled() {
return nil
Expand Down

0 comments on commit 2706b05

Please sign in to comment.