Example #1
0
File: main.go Project: silky/rct
func main() {
	directory := flag.String("directory", "/usr/local/rct", "Path to the folder storing RCT experiment data")
	packageRoot := flag.String("package-root", "/", "Path to the folder running github.com/kevinburke/rct (for finding commit hashes)")
	flag.Parse()
	if len(flag.Args()) > 0 {
		log.Fatalf("Usage: genetic [-directory DIRECTORY] ")
	}
	log.Fatal(genetic.Run(*directory, *packageRoot))
}
Example #2
0
func main() {
	packageRoot := flag.String("package-root", "/", "Path to the folder running github.com/kevinburke/rct (for finding commit hashes)")
	flag.Parse()
	if len(flag.Args()) > 0 {
		log.Fatalf("Usage: genetic [-directory DIRECTORY] ")
	}
	err := genetic.Run(*packageRoot)
	if err != nil {
		log.Fatal(err)
	}
}