Update TakesFile flag to apply only to supported flags

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
Sascha Grunert
2019-08-13 09:43:57 +02:00
parent 6cc7e987c4
commit 3681b057c5
4 changed files with 32 additions and 27 deletions

View File

@@ -17,7 +17,9 @@ type {{ $flag.Name }}Flag struct {
FilePath string
Required bool
Hidden bool
{{- if eq $flag.TakesFile true }}
TakesFile bool
{{- end }}
{{- if eq $flag.Value true }}
Value {{ $flag.Type }}
{{- end }}