File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ var KubeConfig string
2929// rootCmd represents the base command when called without any subcommands
3030var rootCmd = & cobra.Command {
3131 Use : "bekind" ,
32- Version : "v0.4.4 " ,
32+ Version : "v0.4.5 " ,
3333 Short : "Installs an opinionated KIND cluster" ,
3434 Long : `This command installs a KIND cluster.
3535The KIND cluster is then configured based on what configuration file is passed.` ,
Original file line number Diff line number Diff line change @@ -108,8 +108,10 @@ func init() {
108108 // Mark profile-dir flag and config flag as mutually exclusive
109109 runCmd .MarkFlagsMutuallyExclusive ("profile-dir" , "config" )
110110
111- // Mark the config flag as hidden as it doesn't make sense to use it with the run command
112- runCmd .Flags ().MarkHidden ("config" )
111+ // Mark the config flag as hidden for this command only as it doesn't make sense to use it with the run command
112+ if configFlag := runCmd .Flags ().Lookup ("config" ); configFlag != nil {
113+ configFlag .Hidden = true
114+ }
113115}
114116
115117// profileValidArgs returns a list of profiles for tab completion
You can’t perform that action at this time.
0 commit comments