diff --git a/cmd/restic/global.go b/cmd/restic/global.go index 8d02b228e..d411d9e65 100644 --- a/cmd/restic/global.go +++ b/cmd/restic/global.go @@ -119,6 +119,8 @@ func init() { f.IntVar(&globalOptions.LimitUploadKb, "limit-upload", 0, "limits uploads to a maximum rate in KiB/s. (default: unlimited)") f.IntVar(&globalOptions.LimitDownloadKb, "limit-download", 0, "limits downloads to a maximum rate in KiB/s. (default: unlimited)") f.StringSliceVarP(&globalOptions.Options, "option", "o", []string{}, "set extended option (`key=value`, can be specified multiple times)") + // Use our "generate" command instead of the cobra provided "completion" command + cmdRoot.CompletionOptions.DisableDefaultCmd = true restoreTerminal() }