MCPcopy Index your code
hub / github.com/rclone/rclone / Main

Function Main

cmd/cmd.go:536–546  ·  view source on GitHub ↗

Main runs rclone interpreting flags and commands out of os.Args

()

Source from the content-addressed store, hash-verified

534
535// Main runs rclone interpreting flags and commands out of os.Args
536func Main() {
537 setupRootCommand(Root)
538 AddBackendFlags()
539 if err := Root.Execute(); err != nil {
540 if strings.HasPrefix(err.Error(), "unknown command") && selfupdateEnabled {
541 Root.PrintErrf("You could use '%s selfupdate' to get latest features.\n\n", Root.CommandPath())
542 }
543 fs.Logf(nil, "Fatal error: %v", err)
544 os.Exit(exitcode.UsageError)
545 }
546}

Callers 3

mainFunction · 0.92
mainFunction · 0.92
MainFunction · 0.92

Calls 5

LogfFunction · 0.92
setupRootCommandFunction · 0.85
AddBackendFlagsFunction · 0.85
ExitMethod · 0.80
ErrorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…