From: Scott Worley Date: Tue, 29 Nov 2011 15:30:32 +0000 (-0800) Subject: UI: Explain required usage when run without args X-Git-Url: http://git.scottworley.com/planeteer/commitdiff_plain/311b26d48114468d26758f2a30b1d794cb324102 UI: Explain required usage when run without args --- 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 {