From 311b26d48114468d26758f2a30b1d794cb324102 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Tue, 29 Nov 2011 07:30:32 -0800 Subject: [PATCH] UI: Explain required usage when run without args --- planeteer.go | 4 ++++ 1 file changed, 4 insertions(+) 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 { -- 2.44.1