Main runs rclone interpreting flags and commands out of os.Args
()
| 534 | |
| 535 | // Main runs rclone interpreting flags and commands out of os.Args |
| 536 | func 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 | } |
no test coverage detected
searching dependent graphs…