Add a new --retry flag to change default retry count

This commit is contained in:
Harshavardhana
2015-04-19 22:46:23 -07:00
parent e728cd9857
commit d407c753c5
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -223,5 +223,10 @@ var (
Name: "quiet, q",
Usage: "Supress chatty console output",
},
cli.IntFlag{
Name: "retry",
Usage: "Number of retry count",
Value: 5,
},
}
)
+1
View File
@@ -82,6 +82,7 @@ func main() {
app.Before = func(ctx *cli.Context) error {
globalQuietFlag = ctx.GlobalBool("quiet")
globalDebugFlag = ctx.GlobalBool("debug")
globalMaxRetryFlag = ctx.GlobalInt("retry")
if globalDebugFlag {
app.ExtraInfo = getSystemData()
} else {