diff --git a/cli-ext.tmpl b/cli-ext.tmpl index 1351b7a..a8426e0 100644 --- a/cli-ext.tmpl +++ b/cli-ext.tmpl @@ -24,7 +24,7 @@ import ( type rootT struct { cli.Helper{{range .Options}} - {{.Name}} {{.Type}} `cli:"{{.Flag}}" usage:"{{.Usage}}"{{if eq .Name "Self" }} json:"-" parser:"jsonfile"{{end}}{{if .Value}} dft:"{{.Value}}"{{end}}`{{end}} + {{.Name}} {{.Type}} `cli:"{{.Flag}}" usage:"{{.Usage}}"{{if eq .Name "Self" }} json:"-" parser:"jsoncfg"{{end}}{{if .Value}} dft:"{{.Value}}"{{end}}`{{end}} } var root = &cli.Command{ diff --git a/cli-std.tmpl b/cli-std.tmpl index 545db77..da7b1eb 100644 --- a/cli-std.tmpl +++ b/cli-std.tmpl @@ -22,7 +22,7 @@ import ( type rootT struct { cli.Helper{{range .Options}} - {{.Name}} {{.Type}} `cli:"{{.Flag}}" usage:"{{.Usage}}"{{if eq .Name "Self" }} json:"-" parser:"jsonfile"{{end}}{{if .Value}} dft:"{{.Value}}"{{end}}`{{end}} + {{.Name}} {{.Type}} `cli:"{{.Flag}}" usage:"{{.Usage}}"{{if eq .Name "Self" }} json:"-" parser:"jsoncfg"{{end}}{{if .Value}} dft:"{{.Value}}"{{end}}`{{end}} } var root = &cli.Command{