Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ijaz Ahmad
ksonnet
Commits
bb7180e6
Commit
bb7180e6
authored
Jul 19, 2018
by
fisache
Browse files
fix verbose error message in generate cli
Signed-off-by:
Inki Hwang
<
hwang031451@gmail.com
>
parent
6d29a276
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
pkg/prototype/flags.go
pkg/prototype/flags.go
+1
-0
pkg/prototype/flags_test.go
pkg/prototype/flags_test.go
+1
-0
No files found.
pkg/prototype/flags.go
View file @
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
{
...
...
pkg/prototype/flags_test.go
View file @
bb7180e6
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment