server: Don't crash if no flags passed

This commit is contained in:
Aaron Boodman
2015-07-07 14:25:39 -07:00
parent 08a4ed55f0
commit 1fe0f6c79f

View File

@@ -72,7 +72,10 @@ func main() {
flag.Parse()
cs = flags.CreateStore()
Chk.NotNil(cs)
if cs == nil {
flag.Usage()
return
}
// TODO: Shouldn't have to cast here.
tracker = cs.(chunks.RootTracker)