cmd: fix CLI package deprecation warnings

This commit is contained in:
Péter Szilágyi
2016-06-10 11:23:00 +03:00
parent 63d1d145e2
commit 90e07b19ab
8 changed files with 55 additions and 27 deletions

View File

@ -104,7 +104,7 @@ func init() {
app.Action = run
}
func run(ctx *cli.Context) {
func run(ctx *cli.Context) error {
glog.SetToStderr(true)
glog.SetV(ctx.GlobalInt(VerbosityFlag.Name))
@ -154,6 +154,7 @@ num gc: %d
fmt.Printf(" error: %v", e)
}
fmt.Println()
return nil
}
func main() {