Merge pull request #77 from blue-bird1/dev

if not have file arg, will print usage
This commit is contained in:
Vadym Slizov
2019-03-07 09:37:01 +02:00
committed by GitHub

View File

@@ -44,6 +44,11 @@ func main() {
flag.Parse()
if len(flag.Args()) == 0{
flag.Usage()
return
}
switch profiler {
case "cpu":
defer profile.Start(profile.ProfilePath("."), profile.NoShutdownHook).Stop()