Update TakesFile
flag to apply only to supported flags
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
@@ -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 }}
|
||||
|
Reference in New Issue
Block a user