Commit b054b596 authored by Dimitri Mitropoulos's avatar Dimitri Mitropoulos
Browse files

reflects reality that the `verbose` flag is not global

parent 362bfdbb
Showing with 0 additions and 5 deletions
+0 -5
......@@ -52,7 +52,6 @@ func init() {
Cmd.Flags().StringVar(&globalParams.namespace, "namespace", manifest.DefaultNamespace, "namespace override for WKS components")
Cmd.Flags().BoolVar(&globalParams.useManifestNamespace, "use-manifest-namespace", false, "use namespaces from supplied manifests (overriding any --namespace argument)")
// Intentionally shadows the globally defined --verbose flag.
Cmd.Flags().BoolVarP(&globalParams.verbose, "verbose", "v", false, "Enable verbose output")
// Hide controller-image flag as it is a helper/debug flag.
......
......@@ -59,7 +59,6 @@ func init() {
"Enables kubectl to communicate with the API w/o verifying the certificate")
Cmd.Flags().MarkHidden("insecure-skip-tls-verify")
// Intentionally shadows the globally defined --verbose flag.
Cmd.Flags().BoolVarP(&kubeconfigOptions.verbose, "verbose", "v", false, "Enable verbose output")
}
......
......@@ -41,8 +41,6 @@ func configureLogger(cmd *cobra.Command, args []string) {
}
func main() {
rootCmd.PersistentFlags().BoolVarP(&options.verbose, "verbose", "v", false, "Enable verbose output")
rootCmd.AddCommand(addon.Cmd)
rootCmd.AddCommand(apply.Cmd)
rootCmd.AddCommand(applyaddons.Cmd)
......
......@@ -48,7 +48,6 @@ func init() {
Cmd.Flags().StringVar(&viewOptions.sealedSecretCertPath, "sealed-secret-cert", "", "Path to a certificate used to encrypt sealed secrets")
Cmd.Flags().StringVar(&viewOptions.configDirectory, "config-directory", ".", "Directory containing configuration information for the cluster")
// Intentionally shadows the globally defined --verbose flag.
Cmd.Flags().BoolVarP(&viewOptions.verbose, "verbose", "v", false, "Enable verbose output")
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment