cmd: add --progress/-P flag to show progress

Fixes #2347
Fixes #1210
This commit is contained in:
Nick Craig-Wood
2018-08-26 17:20:38 +01:00
parent b596ccdf0f
commit b6db90cc32
6 changed files with 143 additions and 1 deletions
+1
View File
@@ -85,6 +85,7 @@ func AddFlags(flagSet *pflag.FlagSet) {
flags.FVarP(flagSet, &fs.Config.MaxTransfer, "max-transfer", "", "Maximum size of data to transfer.")
flags.IntVarP(flagSet, &fs.Config.MaxBacklog, "max-backlog", "", fs.Config.MaxBacklog, "Maximum number of objects in sync or check backlog.")
flags.BoolVarP(flagSet, &fs.Config.StatsOneLine, "stats-one-line", "", fs.Config.StatsOneLine, "Make the stats fit on one line.")
flags.BoolVarP(flagSet, &fs.Config.Progress, "progress", "P", fs.Config.Progress, "Show progress during transfer.")
}
// SetFlags converts any flags into config which weren't straight foward