diff --git a/cmd/root.go b/cmd/root.go index 5ee38dc..1516f34 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,6 +1,7 @@ package cmd import ( + "flag" "io" "github.com/simontheleg/konf-go/config" @@ -31,6 +32,7 @@ Afterwards switch between different kubeconfigs via 'konf set' // This is called by main.main(). It only needs to happen once to the rootCmd. func Execute() error { initPersistentFlags() + flag.Parse() if err := initConfig(); err != nil { return err diff --git a/testhelper/shellwrapper.sh b/testhelper/shellwrapper.sh index 67043d8..0e01e82 100755 --- a/testhelper/shellwrapper.sh +++ b/testhelper/shellwrapper.sh @@ -1,4 +1,4 @@ -# This script tests the compatibility of the konf-go shellwrappe with different shells +# This script tests the compatibility of the konf-go shellwrapper with different shells # Therefore it has no shebang line and is intended to be executed directly by the shell to test set -o errexit