[release/1.4.7] cmd: fix CLI package deprecation warnings

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

View File

@ -183,7 +183,7 @@ func runSuite(test, file string) {
}
}
func setupApp(c *cli.Context) {
func setupApp(c *cli.Context) error {
flagTest := c.GlobalString(TestFlag.Name)
flagFile := c.GlobalString(FileFlag.Name)
continueOnError = c.GlobalBool(ContinueOnErrorFlag.Name)
@ -196,8 +196,8 @@ func setupApp(c *cli.Context) {
if err := runTestWithReader(flagTest, os.Stdin); err != nil {
glog.Fatalln(err)
}
}
return nil
}
func main() {