Skip to content

Commit

Permalink
Merge pull request #175 from robertsirc/issue-174
Browse files Browse the repository at this point in the history
fixing issue 174 closes #174
  • Loading branch information
mattfarina authored Sep 4, 2024
2 parents 813b020 + dad8d49 commit 2427ba7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions cmd/mapkubeapis/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var (
settings *EnvSettings
)

func newMapCmd(_ io.Writer, args []string) *cobra.Command {
func newMapCmd(_ io.Writer) *cobra.Command {
cmd := &cobra.Command{
Use: "mapkubeapis [flags] RELEASE",
Short: "Map release deprecated or removed Kubernetes APIs in-place",
Expand All @@ -65,10 +65,6 @@ func newMapCmd(_ io.Writer, args []string) *cobra.Command {

flags := cmd.PersistentFlags()
flags.ParseErrorsWhitelist.UnknownFlags = true
err := flags.Parse(args)
if err != nil {
return nil
}

settings = new(EnvSettings)

Expand Down
2 changes: 1 addition & 1 deletion cmd/mapkubeapis/map_kube_apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
)

func main() {
mapCmd := newMapCmd(os.Stdout, os.Args[1:])
mapCmd := newMapCmd(os.Stdout)

if err := mapCmd.Execute(); err != nil {
os.Exit(1)
Expand Down

0 comments on commit 2427ba7

Please sign in to comment.