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