|
|
@ -39,8 +39,13 @@ func main() {
|
|
39
|
39
|
log.SetFlags(log.Ldate | log.Ltime | log.Lshortfile)
|
|
40
|
40
|
|
|
41
|
41
|
flag.Usage = func() {
|
|
42
|
|
fmt.Fprintf(os.Stderr, "Usage: %s <file>\n", os.Args[0])
|
|
|
42
|
fmt.Fprintf(os.Stderr, "Usage: %s <file>\n\n", os.Args[0])
|
|
43
|
43
|
flag.PrintDefaults()
|
|
|
44
|
fmt.Fprintf(os.Stderr, "\nSupported project types: \n")
|
|
|
45
|
for _, project := range detect.ProjectTypes {
|
|
|
46
|
paddedId := fmt.Sprintf("%s%s", project.Id, strings.Repeat(" ", 30-len(project.Id)))
|
|
|
47
|
fmt.Fprintf(os.Stderr, "\t%s- %v\n", paddedId, project.Commands[*phase])
|
|
|
48
|
}
|
|
44
|
49
|
}
|
|
45
|
50
|
|
|
46
|
51
|
flag.Parse()
|