Merge pull request #462 from TomChv/fix-version-flags
This commit is contained in:
commit
a79f10a9bb
@ -61,6 +61,10 @@ var versionCmd = &cobra.Command{
|
||||
func init() {
|
||||
versionCmd.Flags().Bool("check", false, "check if dagger is up to date")
|
||||
|
||||
versionCmd.InheritedFlags().MarkHidden("environment")
|
||||
versionCmd.InheritedFlags().MarkHidden("log-level")
|
||||
versionCmd.InheritedFlags().MarkHidden("log-format")
|
||||
|
||||
if err := viper.BindPFlags(versionCmd.Flags()); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user