MCPcopy
hub / github.com/rclone/rclone / ShowStats

Function ShowStats

cmd/cmd.go:234–237  ·  view source on GitHub ↗

ShowStats returns true if the user added a `--stats` flag to the command line. This is called by Run to override the default value of the showStats passed in.

()

Source from the content-addressed store, hash-verified

232// This is called by Run to override the default value of the
233// showStats passed in.
234func ShowStats() bool {
235 statsIntervalFlag := pflag.Lookup("stats")
236 return statsIntervalFlag != nil && statsIntervalFlag.Changed
237}
238
239// Run the function with stats and retries if required
240func Run(Retry bool, showStats bool, cmd *cobra.Command, f func() error) {

Callers 3

NewMountCommandFunction · 0.92
RunFunction · 0.85
startProgressFunction · 0.85

Calls 1

LookupMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…