cmd: rclone selfupdate (#5080)

Implements self-update command
Fixes #548
Fixes #5076
This commit is contained in:
Ivan Andreev 2021-03-11 22:39:30 +03:00 committed by GitHub
parent 4d8ef7bca7
commit 6fa74340a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 811 additions and 7 deletions

View file

@ -548,6 +548,9 @@ func Main() {
setupRootCommand(Root)
AddBackendFlags()
if err := Root.Execute(); err != nil {
if strings.HasPrefix(err.Error(), "unknown command") {
Root.PrintErrf("You could use '%s selfupdate' to get latest features.\n\n", Root.CommandPath())
}
log.Fatalf("Fatal error: %v", err)
}
}