run.go: exit(0) when no algo is specified
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5192790ce4
commit
071cb75853
5
run.go
5
run.go
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue