Skip to content

Commit

Permalink
Make "binary" flag persistent
Browse files Browse the repository at this point in the history
  • Loading branch information
ioboi committed May 30, 2024
1 parent a48ae2b commit fdb3bc5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/kustomize.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ var kustomizeCmd = &cobra.Command{
}

func init() {
kustomizeCmd.AddCommand(kustomize.KustomizeBuildCmd)
rootCmd.AddCommand(kustomizeCmd)

binary = kustomizeCmd.Flags().String("binary", "", "Alternative kustomize binary")
binary = kustomizeCmd.PersistentFlags().String("binary", "", "Alternative kustomize binary")
version = kustomizeCmd.Flags().BoolP("version", "v", false, "Display version of kustomize")
outputDotDir = kustomizeCmd.Flags().StringP("output-dir", "o", ".", "Output directory")

kustomizeCmd.AddCommand(kustomize.KustomizeBuildCmd)
rootCmd.AddCommand(kustomizeCmd)
}

0 comments on commit fdb3bc5

Please sign in to comment.