Commits · ampify
tav ·
f2bfab6f33e837366f7cd3f1034dd60d184c2a1a· ampify · githubMade the default config file generator configurable.
Changes
| src/amp/optparse/optparse.go | ||
| ... | ... | @@ -453,8 +453,8 @@ func (op *OptionParser) PrintUsage() { |
| 453 | 453 | } |
| 454 | 454 | } |
| 455 | 455 | |
| 456 | -func (op *OptionParser) PrintDefaultConfigFile() { | |
| 457 | - fmt.Printf("# %s.yaml\n\n", os.Args[0]) | |
| 456 | +func (op *OptionParser) PrintDefaultConfigFile(name string) { | |
| 457 | + fmt.Printf("# %s.yaml\n\n", name) | |
| 458 | 458 | for _, opt := range op.options { |
| 459 | 459 | if opt.configflag != "" { |
| 460 | 460 | fmt.Printf("%s: ", opt.configflag) |
