run.go: exit(0) when no algo is specified
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
leo 2023-02-03 20:39:14 +01:00
parent 5192790ce4
commit 071cb75853
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

5
run.go
View File

@ -6,6 +6,7 @@
import (
"flag"
"log"
"os"
"sync"
"git.dotya.ml/wanderer/math-optim/algo"
@ -29,7 +30,9 @@ func run() {
if *generate {
if !*jDE && !*sHC && !*rS {
log.Fatalln("at least one algo needs to be specified, exiting...")
log.Println("at least one algo needs to be specified, exiting...")
os.Exit(0)
}
var wg sync.WaitGroup