X-Git-Url: http://git.scottworley.com/planeteer/blobdiff_plain/6918cad2f988fbad7ccf62a21151f0266261d547..311b26d48114468d26758f2a30b1d794cb324102:/planeteer.go?ds=inline diff --git a/planeteer.go b/planeteer.go index cfde30f..67a843d 100644 --- a/planeteer.go +++ b/planeteer.go @@ -648,6 +648,10 @@ func IndexCommodities(m *map[string]Commodity, start_at int) (map[string]int, [] func main() { flag.Parse() + if *start == "" || *funds == 0 { + print("--start and --funds are required. --help for more\n") + return + } if *cpuprofile != "" { f, err := os.Create(*cpuprofile) if err != nil {