Merge pull request #901 from TomChv/fix/cli-global-flags

Fix env & log global flags are no longer hidden.
This commit is contained in:
Andrea Luzzardi 2021-08-20 17:16:53 +02:00 committed by GitHub
commit 283a5f76a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,10 +59,6 @@ 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)
}