Compare commits
3 Commits
75c29b4ed4
...
1c700fdfdd
Author | SHA1 | Date | |
---|---|---|---|
1c700fdfdd | |||
c46b9c0dfa | |||
e0b80af961 |
6
main.go
6
main.go
@ -89,13 +89,13 @@ func main() {
|
||||
|
||||
if *ListTemplates {
|
||||
listTemplates()
|
||||
os.Exit(0)
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
if *License == "" {
|
||||
fmt.Printf("Error: No license specified\n\nUse --license LICENSE\n\nAvailable licenses:\n")
|
||||
listTemplates()
|
||||
os.Exit(1)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
if *authorName == "" || *authorEmail == "" {
|
||||
@ -122,7 +122,7 @@ func main() {
|
||||
if errors.Is(err, NotSupportedError) {
|
||||
fmt.Printf("Error: There is no '%s' license\n\nAvailable licenses:\n", *License)
|
||||
listTemplates()
|
||||
os.Exit(2)
|
||||
os.Exit(2)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user