Unverified Commit 5be3b2dd authored by Bryan Liles's avatar Bryan Liles Committed by GitHub
Browse files

Merge pull request #772 from fisache/master

fix verbose error message in generate cli
parents 4b260d7d bb7180e6
......@@ -40,6 +40,7 @@ func BindFlags(p *Prototype) (fs *pflag.FlagSet, err error) {
fs.String("values-file", "", "Prototype values file (file returns a Jsonnet object)")
fs.String("module", "", "Component module")
fs.CountP("verbose", "v", "Increase verbosity. May be given multiple times.")
for _, param := range p.RequiredParams() {
if fs.Lookup(param.Name) != nil {
......
......@@ -60,6 +60,7 @@ func TestBindFlags(t *testing.T) {
"module": "Component module",
"optional": "optional",
"values-file": "Prototype values file (file returns a Jsonnet object)",
"verbose": "Increase verbosity. May be given multiple times.",
}
var seenFlags []string
......
Markdown is supported
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