File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,15 +52,15 @@ func init() {
52
52
}
53
53
54
54
{{if eqf .UsageSummary "True" }}
55
- const USAGE_SUMMARY = "{{range .Options}}{{if eq .Name "SEPARATOR" }}\n{{else}}{{$envVar := printf "%s_%s" (clk2ss $.ProgramName) (clk2ss .Flag)}} -{{.Flag}}\t{{.Usage}} ({{$envVar}})\n{{end}}{{end}}\nDetails:\n\n"
55
+ const usageSummary = "{{range .Options}}{{if eq .Name "SEPARATOR" }}\n{{else}}{{$envVar := printf "%s_%s" (clk2ss $.ProgramName) (clk2ss .Flag)}} -{{.Flag}}\t{{.Usage}} ({{$envVar}})\n{{end}}{{end}}\nDetails:\n\n"
56
56
{{end}}
57
57
58
58
// Usage function shows help on commandline usage
59
59
func Usage() {
60
60
fmt.Fprintf(os.Stderr,
61
61
"{{.UsageLead}}",
62
62
progname){{if eq .UsageSummary "TRUE" }}
63
- fmt.Fprintf(os.Stderr, USAGE_SUMMARY ){{end}}
63
+ fmt.Fprintf(os.Stderr, usageSummary ){{end}}
64
64
flag.PrintDefaults()
65
65
fmt.Fprintf(os.Stderr,
66
66
"{{.UsageEnd}}")
You can’t perform that action at this time.
0 commit comments