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
commit 9ca7109abe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()